]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mp11/test/mp_replace_third.cpp
2 // Copyright 2015, 2017 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/mp11/algorithm.hpp>
11 #include <boost/mp11/list.hpp>
12 #include <boost/core/lightweight_test_trait.hpp>
13 #include <type_traits>
24 using boost::mp11::mp_list
;
25 using boost::mp11::mp_replace_third
;
28 using L3
= mp_list
<X1
, X2
, X3
>;
30 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_replace_third
<L3
, void>, mp_list
<X1
, X2
, void>>));
32 using L4
= mp_list
<X1
, X2
, X3
, X4
>;
34 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_replace_third
<L4
, void>, mp_list
<X1
, X2
, void, X4
>>));
38 using L3
= std::tuple
<X1
, X2
, X3
>;
40 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_replace_third
<L3
, void>, std::tuple
<X1
, X2
, void>>));
42 using L4
= std::tuple
<X1
, X2
, X3
, X4
>;
44 BOOST_TEST_TRAIT_TRUE((std::is_same
<mp_replace_third
<L4
, void>, std::tuple
<X1
, X2
, void, X4
>>));
47 return boost::report_errors();