• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)
4 
5 #include <boost/hana/detail/fast_and.hpp>
6 namespace hana = boost::hana;
7 
8 
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, "");
12 
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, "");
17 
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, "");
26 
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, "");
31 
main()32 int main() { }
33