// boost/endian/std_pair.hpp ---------------------------------------------------------// // Copyright Beman Dawes 2013 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt //--------------------------------------------------------------------------------------// #ifndef BOOST_ENDIAN_STD_PAIR_HPP #define BOOST_ENDIAN_STD_PAIR_HPP #include #include namespace boost { namespace endian { template std::pair reverse_value(std::pair x) { return std::pair(reverse_value(x.first), reverse_value(x.second)); } template void reverse(std::pair& x) { reverse(x.first); reverse(x.second); } } } #endif // BOOST_ENDIAN_STD_PAIR_HPP