forked from boostorg/endian
Remove obsolete std_pair.hpp
This commit is contained in:
@ -1,38 +0,0 @@
|
|||||||
// 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 <boost/endian/conversion.hpp>
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
namespace endian
|
|
||||||
{
|
|
||||||
template <class ReversibleValueT, class ReversibleValueU>
|
|
||||||
std::pair<ReversibleValueT, ReversibleValueU>
|
|
||||||
reverse_value(std::pair<ReversibleValueT, ReversibleValueU> x)
|
|
||||||
{
|
|
||||||
return std::pair<ReversibleValueT, ReversibleValueU>(reverse_value(x.first),
|
|
||||||
reverse_value(x.second));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class ReversibleT, class ReversibleU>
|
|
||||||
void reverse(std::pair<ReversibleT, ReversibleU>& x)
|
|
||||||
{
|
|
||||||
reverse(x.first);
|
|
||||||
reverse(x.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // BOOST_ENDIAN_STD_PAIR_HPP
|
|
Reference in New Issue
Block a user