]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/conjunction_test.cpp
2 Copyright 2020 Glen Joseph Fernandes
5 Distributed under the Boost Software License,
6 Version 1.0. (See accompanying file LICENSE_1_0.txt
7 or copy at http://www.boost.org/LICENSE_1_0.txt)
10 #include <type_traits>
12 #include <boost/type_traits/conjunction.hpp>
14 #include "check_integral_constant.hpp"
18 static const int value
= V
;
21 TT_TEST_BEGIN(conjunction
)
23 BOOST_CHECK_INTEGRAL_CONSTANT((::tt::conjunction
<Int
<2>, Int
<4> >::value
), 4);
24 BOOST_CHECK_INTEGRAL_CONSTANT((::tt::conjunction
<Int
<0>, Int
<4> >::value
), 0);
26 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
27 BOOST_CHECK_INTEGRAL_CONSTANT((::tt::conjunction
<Int
<2>, Int
<4>, Int
<6>,
28 Int
<8>, Int
<10> >::value
), 10);
29 BOOST_CHECK_INTEGRAL_CONSTANT((::tt::conjunction
<Int
<2>, Int
<0>, Int
<4>,
30 Int
<6>, Int
<8> >::value
), 0);
31 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::conjunction
<Int
<4> >::value
, 4);
32 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::conjunction
<>::value
, true);