]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mp11/test/mp_any_2.cpp
91f23d9fa87dc2fc81b18d6d3da82385ec5851e2
1 // Copyright 2021 Peter Dimov.
2 // Distributed under the Boost Software License, Version 1.0.
3 // https://www.boost.org/LICENSE_1_0.txt
5 #include <boost/mp11/detail/config.hpp>
8 # pragma warning( disable: 4503 ) // decorated name length exceeded
11 #include <boost/mp11/function.hpp>
12 #include <boost/mp11/integral.hpp>
13 #include <boost/mp11/algorithm.hpp>
14 #include <boost/core/lightweight_test_trait.hpp>
15 #include <type_traits>
19 using boost::mp11::mp_any
;
21 using boost::mp11::mp_list
;
22 using boost::mp11::mp_apply
;
23 using boost::mp11::mp_true
;
24 using boost::mp11::mp_false
;
26 using boost::mp11::mp_repeat_c
;
27 using boost::mp11::mp_push_back
;
31 using L1
= mp_repeat_c
<mp_list
<mp_false
>, N
>;
32 using R1
= mp_apply
<mp_any
, L1
>;
34 BOOST_TEST_TRAIT_TRUE((std::is_same
<R1
, mp_false
>));
36 using L2
= mp_push_back
<L1
, mp_true
>;
37 using R2
= mp_apply
<mp_any
, L2
>;
39 BOOST_TEST_TRAIT_TRUE((std::is_same
<R2
, mp_true
>));
41 return boost::report_errors();