// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // (C) Copyright Eric Friedman 2002-2003. // (C) Copyright Antony Polukhin 2013. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). // // See http://www.boost.org/libs/type_traits for most recent version including documentation. #ifndef BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED #define BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED #include // size_t #include #include #include #include #include #include #ifdef BOOST_IS_NOTHROW_MOVE_CONSTRUCT namespace boost { template struct is_nothrow_move_constructible : public integral_constant { BOOST_STATIC_ASSERT_MSG(boost::is_complete::value, "Arguments to is_nothrow_move_constructible must be complete types"); }; template struct is_nothrow_move_constructible : public ::boost::false_type {}; template struct is_nothrow_move_constructible : public ::boost::false_type{}; #elif !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) && !BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40700) #include #include namespace boost{ namespace detail{ template struct false_or_cpp11_noexcept_move_constructible: public ::boost::false_type {}; template struct false_or_cpp11_noexcept_move_constructible < T, typename ::boost::enable_if_c()))>::type > : public ::boost::integral_constant()))> {}; } template struct is_nothrow_move_constructible : public integral_constant::value> { BOOST_STATIC_ASSERT_MSG(boost::is_complete::value, "Arguments to is_nothrow_move_constructible must be complete types"); }; template struct is_nothrow_move_constructible : public ::boost::false_type {}; template struct is_nothrow_move_constructible : public ::boost::false_type{}; template struct is_nothrow_move_constructible : public ::boost::false_type{}; template struct is_nothrow_move_constructible : public ::boost::false_type{}; #else #include #include #include namespace boost{ template struct is_nothrow_move_constructible : public integral_constant::value || ::boost::has_nothrow_copy::value) && !::boost::is_array::value> { BOOST_STATIC_ASSERT_MSG(boost::is_complete::value, "Arguments to is_nothrow_move_constructible must be complete types"); }; #endif template <> struct is_nothrow_move_constructible : false_type{}; #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS template <> struct is_nothrow_move_constructible : false_type{}; template <> struct is_nothrow_move_constructible : false_type{}; template <> struct is_nothrow_move_constructible : false_type{}; #endif // References are always trivially constructible, even if the thing they reference is not: template struct is_nothrow_move_constructible : public ::boost::true_type{}; #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES template struct is_nothrow_move_constructible : public ::boost::true_type{}; #endif } // namespace boost #endif // BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED