has_nothrow_copy.hpp
Go to the documentation of this file.
1 
2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
6 //
7 // See http://www.boost.org/libs/type_traits for most recent version including documentation.
8 
9 #ifndef BOOST_TT_HAS_NOTHROW_COPY_HPP_INCLUDED
10 #define BOOST_TT_HAS_NOTHROW_COPY_HPP_INCLUDED
11 
14 
15 #ifdef BOOST_HAS_NOTHROW_COPY
16 
17 #if defined(BOOST_CLANG) || defined(__GNUC__) || defined(__ghs__) || defined(__CODEGEARC__) || defined(__SUNPRO_CC)
22 #ifdef BOOST_INTEL
24 #endif
25 #elif defined(BOOST_MSVC) || defined(BOOST_INTEL)
28 #ifdef BOOST_INTEL
31 #endif
32 #endif
33 
34 namespace boost {
35 
36 template <class T> struct has_nothrow_copy_constructor : public integral_constant<bool, BOOST_HAS_NOTHROW_COPY(T)>{};
37 
38 #elif !defined(BOOST_NO_CXX11_NOEXCEPT)
39 
42 
43 namespace boost{
44 
45 namespace detail{
46 
47 template <class T, bool b>
49 template <class T>
50 struct has_nothrow_copy_constructor_imp<T, true> : public boost::integral_constant<bool, noexcept(T(boost::declval<const T&>()))>{};
51 
52 }
53 
54 template <class T> struct has_nothrow_copy_constructor : public detail::has_nothrow_copy_constructor_imp<T, boost::is_copy_constructible<T>::value>{};
55 
56 #else
57 
59 
60 namespace boost{
61 
62 template <class T> struct has_nothrow_copy_constructor : public integral_constant<bool, ::boost::has_trivial_copy<T>::value>{};
63 
64 #endif
65 
66 template <> struct has_nothrow_copy_constructor<void> : public false_type{};
67 template <class T> struct has_nothrow_copy_constructor<T volatile> : public false_type{};
68 template <class T> struct has_nothrow_copy_constructor<T&> : public false_type{};
69 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
70 template <class T> struct has_nothrow_copy_constructor<T&&> : public false_type{};
71 #endif
72 #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
73 template <> struct has_nothrow_copy_constructor<void const> : public false_type{};
74 template <> struct has_nothrow_copy_constructor<void volatile> : public false_type{};
75 template <> struct has_nothrow_copy_constructor<void const volatile> : public false_type{};
76 #endif
77 
78 template <class T> struct has_nothrow_copy : public has_nothrow_copy_constructor<T>{};
79 
80 } // namespace boost
81 
82 #endif // BOOST_TT_HAS_NOTHROW_COPY_HPP_INCLUDED
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
const char * detail


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:16