1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef BOOST_MOVE_TRAITS_HPP
- #define BOOST_MOVE_TRAITS_HPP
- #ifndef BOOST_CONFIG_HPP
- # include <boost/config.hpp>
- #endif
- #
- #if defined(BOOST_HAS_PRAGMA_ONCE)
- # pragma once
- #endif
- #include <boost/move/detail/config_begin.hpp>
- #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
- #include <boost/move/core.hpp>
- #endif
- #include <boost/move/detail/meta_utils.hpp>
- #include <boost/move/detail/type_traits.hpp>
- namespace boost {
- template <class T>
- struct has_trivial_destructor_after_move
- : ::boost::move_detail::is_trivially_destructible<T>
- {};
- template <class T>
- struct has_nothrow_move
- {
- static const bool value = boost::move_detail::is_nothrow_move_constructible<T>::value &&
- boost::move_detail::is_nothrow_move_assignable<T>::value;
- };
- namespace move_detail {
- template <class T>
- struct is_nothrow_move_constructible_or_uncopyable
- {
-
-
- static const bool value = is_nothrow_move_constructible<T>::value ||
- has_nothrow_move<T>::value ||
- !is_copy_constructible<T>::value;
- };
- }
- }
- #include <boost/move/detail/config_end.hpp>
- #endif
|