Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/endian/std_pair.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:c530137014c0 | 102:f46d142149f5 |
---|---|
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 |