annotate DEPENDENCIES/generic/include/boost/endian/std_pair.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // boost/endian/std_pair.hpp ---------------------------------------------------------//
Chris@102 2
Chris@102 3 // Copyright Beman Dawes 2013
Chris@102 4
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // http://www.boost.org/LICENSE_1_0.txt
Chris@102 7
Chris@102 8 //--------------------------------------------------------------------------------------//
Chris@102 9
Chris@102 10 #ifndef BOOST_ENDIAN_STD_PAIR_HPP
Chris@102 11 #define BOOST_ENDIAN_STD_PAIR_HPP
Chris@102 12
Chris@102 13 #include <boost/endian/conversion.hpp>
Chris@102 14 #include <utility>
Chris@102 15
Chris@102 16 namespace boost
Chris@102 17 {
Chris@102 18 namespace endian
Chris@102 19 {
Chris@102 20 template <class ReversibleValueT, class ReversibleValueU>
Chris@102 21 std::pair<ReversibleValueT, ReversibleValueU>
Chris@102 22 reverse_value(std::pair<ReversibleValueT, ReversibleValueU> x)
Chris@102 23 {
Chris@102 24 return std::pair<ReversibleValueT, ReversibleValueU>(reverse_value(x.first),
Chris@102 25 reverse_value(x.second));
Chris@102 26 }
Chris@102 27
Chris@102 28 template <class ReversibleT, class ReversibleU>
Chris@102 29 void reverse(std::pair<ReversibleT, ReversibleU>& x)
Chris@102 30 {
Chris@102 31 reverse(x.first);
Chris@102 32 reverse(x.second);
Chris@102 33 }
Chris@102 34
Chris@102 35 }
Chris@102 36 }
Chris@102 37
Chris@102 38 #endif // BOOST_ENDIAN_STD_PAIR_HPP