Brian Silverman | 4a2409e | 2018-08-04 23:24:02 -0700 | [diff] [blame^] | 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 | |
| 8 | [section:is_default_constructible is_default_constructible] |
| 9 | |
| 10 | template <class T> |
| 11 | struct is_default_constructible : public __tof {}; |
| 12 | |
| 13 | __inherit If `T` can be default-constructed |
| 14 | then inherits from __true_type, otherwise inherits from __false_type. Type `T` |
| 15 | must be a complete type. |
| 16 | |
| 17 | __compat This trait requires the C++11 feature `decltype` support for full support. |
| 18 | While there is some fallback code for cases where this is not the case, the trait should really be considered broken in that case. |
| 19 | |
| 20 | __header ` #include <boost/type_traits/is_copy_constructible.hpp>` or ` #include <boost/type_traits.hpp>` |
| 21 | |
| 22 | [endsect] |
| 23 | |