...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_default_constructible : public true_type-or-false_type
{};
Inherits: If T
can be default-constructed 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 feature decltype
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>