...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
template <class T>
struct is_destructible : public true_type-or-false_type
{};
Inherits: If T
does not have its destructor deleted then inherits from true_type,
otherwise inherits from false_type.
Type T
must be a complete
type.
Compiler Compatibility: This trait requires
the C++11 features decltype
and SFINAE-expression support for full support. While there is some fallback
code for cases where this is not the case, the trait should really be considered
broken in that case.
Header: #include
<boost/type_traits/is_copy_constructible.hpp>
or #include <boost/type_traits.hpp>