• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 // Copyright 2015, 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 #include <boost/mp11/list.hpp>
11 #include <boost/core/lightweight_test_trait.hpp>
12 #include <type_traits>
13 #include <tuple>
14 
main()15 int main()
16 {
17     using boost::mp11::mp_list;
18     using boost::mp11::mp_clear;
19 
20     using L1 = mp_list<int, void(), float[]>;
21     BOOST_TEST_TRAIT_TRUE((std::is_same<mp_clear<L1>, mp_list<>>));
22 
23     //
24 
25     using L2 = std::tuple<int, char, float>;
26     BOOST_TEST_TRAIT_TRUE((std::is_same<mp_clear<L2>, std::tuple<>>));
27 
28     //
29 
30     return boost::report_errors();
31 }
32