is_default_constructible.qbk 818 B

1234567891011121314151617181920212223
  1. [/
  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).
  6. ]
  7. [section:is_default_constructible is_default_constructible]
  8. template <class T>
  9. struct is_default_constructible : public __tof {};
  10. __inherit If `T` can be default-constructed
  11. then inherits from __true_type, otherwise inherits from __false_type. Type `T`
  12. must be a complete type.
  13. __compat This trait requires the C++11 feature `decltype` support for full support.
  14. While there is some fallback code for cases where this is not the case, the trait should really be considered broken in that case.
  15. __header ` #include <boost/type_traits/is_copy_constructible.hpp>` or ` #include <boost/type_traits.hpp>`
  16. [endsect]