]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/detail/fast_and.cpp
fadb168f7ad062b6b9a7bc61790b9918bf7c3f58
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/detail/fast_and.hpp>
6 namespace hana
= boost::hana
;
9 static_assert(hana::detail::fast_and
<>::value
, "");
10 static_assert(hana::detail::fast_and
<true>::value
, "");
11 static_assert(!hana::detail::fast_and
<false>::value
, "");
13 static_assert(hana::detail::fast_and
<true, true>::value
, "");
14 static_assert(!hana::detail::fast_and
<true, false>::value
, "");
15 static_assert(!hana::detail::fast_and
<false, true>::value
, "");
16 static_assert(!hana::detail::fast_and
<false, false>::value
, "");
18 static_assert(hana::detail::fast_and
<true, true, true>::value
, "");
19 static_assert(!hana::detail::fast_and
<true, true, false>::value
, "");
20 static_assert(!hana::detail::fast_and
<true, false, true>::value
, "");
21 static_assert(!hana::detail::fast_and
<true, false, false>::value
, "");
22 static_assert(!hana::detail::fast_and
<false, true, true>::value
, "");
23 static_assert(!hana::detail::fast_and
<false, true, false>::value
, "");
24 static_assert(!hana::detail::fast_and
<false, false, true>::value
, "");
25 static_assert(!hana::detail::fast_and
<false, false, false>::value
, "");
27 static_assert(hana::detail::fast_and
<true, true, true, true, true, true>::value
, "");
28 static_assert(!hana::detail::fast_and
<true, true, true, false, true, true>::value
, "");
29 static_assert(!hana::detail::fast_and
<true, true, true, true, true, false>::value
, "");
30 static_assert(!hana::detail::fast_and
<false, true, true, true, true, true>::value
, "");