is_destructible.hpp
Go to the documentation of this file.
1 
2 // (C) Copyright John Maddock 2015.
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_IS_DESTRUCTIBLE_HPP_INCLUDED
10 #define BOOST_TT_IS_DESTRUCTIBLE_HPP_INCLUDED
11 
12 #include <cstddef> // size_t
15 
16 #if !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1800)
17 
20 
21 namespace boost{
22 
23  namespace detail{
24 
26  {
27  template<typename T, typename = decltype(boost::declval<T&>().~T())>
29  template<typename>
31  };
32 
33  }
34 
35  template <class T> struct is_destructible : public integral_constant<bool, sizeof(detail::is_destructible_imp::test<T>(0)) == sizeof(boost::type_traits::yes_type)>{};
36 
37 #else
38 
41 
42 namespace boost{
43 
44  // We don't know how to implement this:
45  template <class T> struct is_destructible : public integral_constant<bool, is_pod<T>::value || is_class<T>::value>{};
46 #endif
47 
48  template <> struct is_destructible<void> : public false_type{};
49  template <> struct is_destructible<void const> : public false_type{};
50  template <> struct is_destructible<void volatile> : public false_type{};
51  template <> struct is_destructible<void const volatile> : public false_type{};
52  template <class T> struct is_destructible<T&> : public is_destructible<T>{};
53 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
54  template <class T> struct is_destructible<T&&> : public is_destructible<T>{};
55 #endif
56  template <class T, std::size_t N> struct is_destructible<T[N]> : public is_destructible<T>{};
57  template <class T> struct is_destructible<T[]> : public is_destructible<T>{};
58 
59 } // namespace boost
60 
61 #endif // BOOST_TT_IS_DESTRUCTIBLE_HPP_INCLUDED
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
static boost::type_traits::yes_type test(int)
const char * detail


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