// Copyright 2015 Peter Dimov. // // Distributed under the Boost Software License, Version 1.0. // // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt #include #include #include #include #include #include #include struct X1 {}; struct X2 {}; struct X3 {}; struct Y1 {}; struct Z1 {}; struct Z2 {}; template struct F1 {}; template struct F3 {}; template struct F {}; int main() { using boost::mp11::mp_list; using boost::mp11::mp_product; using boost::mp11::mp_product_q; using boost::mp11::mp_quote; { using L1 = std::tuple; using L2 = mp_list; using L3 = std::pair; BOOST_TEST_TRAIT_TRUE((std::is_same, std::tuple, F3, F3, F3, F3, F3>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, L1, L2, L3>, std::tuple, F3, F3, F3, F3, F3>>)); } { using L1 = std::tuple; using L2 = mp_list<>; using L3 = std::pair; BOOST_TEST_TRAIT_TRUE((std::is_same, std::tuple<>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, L1, L2, L3>, std::tuple<>>)); } { using L1 = std::tuple; using L2 = mp_list; BOOST_TEST_TRAIT_TRUE((std::is_same, std::tuple, F1, F1>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, L1>, std::tuple, F1, F1>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, mp_list, F1, F1>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, L2>, mp_list, F1, F1>>)); } { BOOST_TEST_TRAIT_TRUE((std::is_same, mp_list>>)); BOOST_TEST_TRAIT_TRUE((std::is_same>, mp_list>>)); } return boost::report_errors(); }