blob: 733d2e8251c3fdbb43eebd9db06430c3f1e71bd9 [file] [log] [blame]
Brian Silverman4a2409e2018-08-04 23:24:02 -07001[/
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]