mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-04 23:59:21 +01:00
Initial commit.
This commit is contained in:
28
test/mp_third.cpp
Normal file
28
test/mp_third.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
// 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 <boost/core/lightweight_test_trait.hpp>
|
||||
#include <boost/mp11/list.hpp>
|
||||
#include <type_traits>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
int main()
|
||||
{
|
||||
using boost::mp_list;
|
||||
using boost::mp_third;
|
||||
|
||||
using L1 = mp_list<int[], void, float[]>;
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_third<L1>, float[]>));
|
||||
|
||||
using L2 = std::tuple<int, float, char>;
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_third<L2>, char>));
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in New Issue
Block a user