2 Copyright 2015 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
8 [section:has_nothrow_destruct has_nothrow_destructor]
11 struct has_nothrow_destructor : public __tof {};
13 __inherit If T is a (possibly cv-qualified) type with a non-throwing destructor
14 then inherits from __true_type, otherwise inherits from __false_type. Type `T`
15 must be a complete type.
17 __compat Either requires C++11 `noexcept` and `decltype` or else some (unspecified) help from the compiler.
18 You may test to see if the necessary support is available
19 by checking to see if `!defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_NOEXCEPT)` is true.
21 __header ` #include <boost/type_traits/has_nothrow_copy.hpp>` or ` #include <boost/type_traits.hpp>`
24 Note that destructors are assumed to be non-throwing unless they are explicitly marked otherwise with a `throw(something)` specification.
25 This is in line with the C++11 standard.