Brian Silverman | 4a2409e | 2018-08-04 23:24:02 -0700 | [diff] [blame^] | 1 | [/ |
| 2 | Copyright 2017 Peter Dimov |
| 3 | |
| 4 | Distributed under the Boost Software License, Version 1.0. |
| 5 | |
| 6 | (See accompanying file LICENSE_1_0.txt or copy at |
| 7 | http://www.boost.org/LICENSE_1_0.txt). |
| 8 | ] |
| 9 | |
| 10 | [section:is_list_constructible is_list_constructible] |
| 11 | |
| 12 | template <class T, class... Args> |
| 13 | struct is_list_constructible : public __tof {}; |
| 14 | |
| 15 | __inherit If `T` can be constructed from `Args` using list initialization |
| 16 | (`T{declval<Args>()...}`), then inherits from __true_type, otherwise inherits from |
| 17 | __false_type. `T` must be a complete type. |
| 18 | |
| 19 | __compat This trait requires C++11. |
| 20 | |
| 21 | __header ` #include <boost/type_traits/is_list_constructible.hpp>` or ` #include <boost/type_traits.hpp>` |
| 22 | |
| 23 | [endsect] |