File indexing completed on 2025-01-18 09:42:06
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_MULTI_INDEX_DETAIL_ADL_SWAP_HPP
0010 #define BOOST_MULTI_INDEX_DETAIL_ADL_SWAP_HPP
0011
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015
0016 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
0017 #include <algorithm>
0018
0019 namespace boost{
0020
0021 namespace multi_index{
0022
0023 namespace detail{
0024
0025 template<typename T>
0026 void adl_swap(T& x,T& y)
0027 {
0028
0029 #if !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
0030 using std::swap;
0031 swap(x,y);
0032 #else
0033 std::swap(x,y);
0034 #endif
0035
0036 }
0037
0038 }
0039
0040 }
0041
0042 }
0043
0044 #endif