File indexing completed on 2025-01-30 09:35:14
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_CORE_SWAP_HPP
0010 #define BOOST_CORE_SWAP_HPP
0011
0012
0013
0014
0015
0016
0017 #include <boost/core/enable_if.hpp>
0018 #include <boost/config.hpp>
0019 #include <boost/config/header_deprecated.hpp>
0020 #include <boost/core/invoke_swap.hpp>
0021
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #pragma once
0024 #endif
0025
0026 BOOST_HEADER_DEPRECATED("boost/core/invoke_swap.hpp")
0027
0028 namespace boost
0029 {
0030 template<class T1, class T2>
0031 BOOST_GPU_ENABLED
0032 BOOST_DEPRECATED("This function is deprecated, use boost::core::invoke_swap instead.")
0033 inline typename enable_if_c< !boost_swap_impl::is_const<T1>::value && !boost_swap_impl::is_const<T2>::value >::type
0034 swap(T1& left, T2& right)
0035 {
0036 boost::core::invoke_swap(left, right);
0037 }
0038 }
0039
0040 #endif