]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mp11/test/mp_third.cpp
2 // Copyright 2015 Peter Dimov.
4 // Distributed under the Boost Software License, Version 1.0.
6 // See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt
10 #include <boost/core/lightweight_test_trait.hpp>
11 #include <boost/mp11/list.hpp>
12 #include <type_traits>
18 using boost::mp11::mp_list
;
19 using boost::mp11::mp_third
;
21 using L1
= mp_list
<int[], void, float[]>;
22 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_third
<L1
>, float[]>));
24 using L2
= std::tuple
<int, float, char>;
25 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_third
<L2
>, char>));
27 return boost::report_errors();