]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mp11/test/mp_map_find_2.cpp
2 // Copyright 2016, 2020 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/map.hpp>
11 #include <boost/core/lightweight_test_trait.hpp>
19 using boost::mp11::mp_map_find
;
21 using L1
= std::tuple
<std::tuple
<int, int>, std::tuple
<long, long>, std::tuple
<bool, X
>, std::tuple
<X
, bool>>;
23 BOOST_TEST_TRAIT_SAME( mp_map_find
<L1
, int>, std::tuple
<int, int> );
24 BOOST_TEST_TRAIT_SAME( mp_map_find
<L1
, bool>, std::tuple
<bool, X
> );
25 BOOST_TEST_TRAIT_SAME( mp_map_find
<L1
, X
>, std::tuple
<X
, bool> );
27 using L2
= std::tuple
<std::tuple
<X
, Y
>, std::tuple
<Y
, X
>>;
29 BOOST_TEST_TRAIT_SAME( mp_map_find
<L2
, X
>, std::tuple
<X
, Y
> );
30 BOOST_TEST_TRAIT_SAME( mp_map_find
<L2
, Y
>, std::tuple
<Y
, X
> );
32 return boost::report_errors();