is_list_constructible.qbk 695 B

1234567891011121314151617181920212223
  1. [/
  2. Copyright 2017 Peter Dimov
  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_list_constructible is_list_constructible]
  8. template <class T, class... Args>
  9. struct is_list_constructible : public __tof {};
  10. __inherit If `T` can be constructed from `Args` using list initialization
  11. (`T{declval<Args>()...}`), then inherits from __true_type, otherwise inherits from
  12. __false_type. `T` must be a complete type.
  13. __compat This trait requires C++11.
  14. __header ` #include <boost/type_traits/is_list_constructible.hpp>` or ` #include <boost/type_traits.hpp>`
  15. [endsect]