]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/concept/struct/any_of.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/any_of.hpp>
6 #include <boost/hana/assert.hpp>
7 #include <boost/hana/concept/struct.hpp>
8 #include <boost/hana/equal.hpp>
9 #include <boost/hana/integral_constant.hpp>
10 #include <boost/hana/not.hpp>
12 #include "minimal_struct.hpp"
13 namespace hana
= boost::hana
;
20 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::any_of(
25 BOOST_HANA_CONSTANT_CHECK(hana::any_of(
27 hana::equal
.to(hana::int_c
<0>)
29 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::any_of(
31 hana::equal
.to(hana::int_c
<1>)
34 BOOST_HANA_CONSTANT_CHECK(hana::any_of(
35 obj(undefined
<0>{}, undefined
<1>{}),
36 hana::equal
.to(hana::int_c
<0>)
38 BOOST_HANA_CONSTANT_CHECK(hana::any_of(
39 obj(undefined
<0>{}, undefined
<1>{}),
40 hana::equal
.to(hana::int_c
<1>)
42 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::any_of(
43 obj(undefined
<0>{}, undefined
<1>{}),
44 hana::equal
.to(hana::int_c
<2>)