is_nothrow_move_constructible.hpp
Go to the documentation of this file.
1 
2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // (C) Copyright Eric Friedman 2002-2003.
4 // (C) Copyright Antony Polukhin 2013.
5 // Use, modification and distribution are subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt).
8 //
9 // See http://www.boost.org/libs/type_traits for most recent version including documentation.
10 
11 #ifndef BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED
12 #define BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED
13 
14 #include <cstddef> // size_t
15 #include <boost/config.hpp>
19 
20 #ifdef BOOST_IS_NOTHROW_MOVE_CONSTRUCT
21 
22 namespace boost {
23 
24 template <class T>
25 struct is_nothrow_move_constructible : public integral_constant<bool, BOOST_IS_NOTHROW_MOVE_CONSTRUCT(T)>{};
26 
27 template <class T> struct is_nothrow_move_constructible<volatile T> : public ::boost::false_type {};
28 template <class T> struct is_nothrow_move_constructible<const volatile T> : public ::boost::false_type{};
29 
30 #elif !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) && !BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
31 
34 
35 namespace boost{ namespace detail{
36 
37 template <class T, class Enable = void>
39 
40 template <class T>
42  T,
43  typename ::boost::enable_if_c<sizeof(T) && BOOST_NOEXCEPT_EXPR(T(::boost::declval<T>()))>::type
44  > : public ::boost::integral_constant<bool, BOOST_NOEXCEPT_EXPR(T(::boost::declval<T>()))>
45 {};
46 
47 }
48 
49 template <class T> struct is_nothrow_move_constructible
50  : public integral_constant<bool, ::boost::detail::false_or_cpp11_noexcept_move_constructible<T>::value>{};
51 
52 template <class T> struct is_nothrow_move_constructible<volatile T> : public ::boost::false_type {};
53 template <class T> struct is_nothrow_move_constructible<const volatile T> : public ::boost::false_type{};
54 template <class T, std::size_t N> struct is_nothrow_move_constructible<T[N]> : public ::boost::false_type{};
55 template <class T> struct is_nothrow_move_constructible<T[]> : public ::boost::false_type{};
56 
57 #else
58 
62 
63 namespace boost{
64 
65 template <class T>
67  : public integral_constant<bool,
68  (::boost::has_trivial_move_constructor<T>::value || ::boost::has_nothrow_copy<T>::value) && !::boost::is_array<T>::value>
69 {};
70 
71 #endif
72 
73 template <> struct is_nothrow_move_constructible<void> : false_type{};
74 #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
75 template <> struct is_nothrow_move_constructible<void const> : false_type{};
76 template <> struct is_nothrow_move_constructible<void volatile> : false_type{};
77 template <> struct is_nothrow_move_constructible<void const volatile> : false_type{};
78 #endif
79 // References are always trivially constructible, even if the thing they reference is not:
81 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
83 #endif
84 
85 } // namespace boost
86 
87 #endif // BOOST_TT_IS_NOTHROW_MOVE_CONSTRUCTIBLE_HPP_INCLUDED
boost::enable_if_c
Definition: core/enable_if.hpp:33
T
T
Definition: mem_fn_cc.hpp:25
config.hpp
integral_constant.hpp
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
intrinsics.hpp
declval.hpp
boost::is_nothrow_move_constructible
Definition: is_nothrow_move_constructible.hpp:49
has_trivial_move_constructor.hpp
boost::move_detail::true_type
integral_constant< bool, true > true_type
Definition: meta_utils_core.hpp:98
has_nothrow_copy.hpp
enable_if.hpp
is_array.hpp
boost::integral_constant< bool, val >
Definition: integral_constant.hpp:77
workaround.hpp
boost::detail::false_or_cpp11_noexcept_move_constructible
Definition: is_nothrow_move_constructible.hpp:38
boost::integral_constant< bool, false >


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:40:01