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