]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/endian/include/boost/endian/std_pair.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / endian / include / boost / endian / std_pair.hpp
1 // boost/endian/std_pair.hpp ---------------------------------------------------------//
2
3 // Copyright Beman Dawes 2013
4
5 // Distributed under the Boost Software License, Version 1.0.
6 // http://www.boost.org/LICENSE_1_0.txt
7
8 //--------------------------------------------------------------------------------------//
9
10 #ifndef BOOST_ENDIAN_STD_PAIR_HPP
11 #define BOOST_ENDIAN_STD_PAIR_HPP
12
13 #include <boost/endian/conversion.hpp>
14 #include <utility>
15
16 namespace boost
17 {
18 namespace endian
19 {
20 template <class ReversibleValueT, class ReversibleValueU>
21 std::pair<ReversibleValueT, ReversibleValueU>
22 reverse_value(std::pair<ReversibleValueT, ReversibleValueU> x)
23 {
24 return std::pair<ReversibleValueT, ReversibleValueU>(reverse_value(x.first),
25 reverse_value(x.second));
26 }
27
28 template <class ReversibleT, class ReversibleU>
29 void reverse(std::pair<ReversibleT, ReversibleU>& x)
30 {
31 reverse(x.first);
32 reverse(x.second);
33 }
34
35 }
36 }
37
38 #endif // BOOST_ENDIAN_STD_PAIR_HPP