fast_and.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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. #include <boost/hana/detail/fast_and.hpp>
  5. namespace hana = boost::hana;
  6. static_assert(hana::detail::fast_and<>::value, "");
  7. static_assert(hana::detail::fast_and<true>::value, "");
  8. static_assert(!hana::detail::fast_and<false>::value, "");
  9. static_assert(hana::detail::fast_and<true, true>::value, "");
  10. static_assert(!hana::detail::fast_and<true, false>::value, "");
  11. static_assert(!hana::detail::fast_and<false, true>::value, "");
  12. static_assert(!hana::detail::fast_and<false, false>::value, "");
  13. static_assert(hana::detail::fast_and<true, true, true>::value, "");
  14. static_assert(!hana::detail::fast_and<true, true, false>::value, "");
  15. static_assert(!hana::detail::fast_and<true, false, true>::value, "");
  16. static_assert(!hana::detail::fast_and<true, false, false>::value, "");
  17. static_assert(!hana::detail::fast_and<false, true, true>::value, "");
  18. static_assert(!hana::detail::fast_and<false, true, false>::value, "");
  19. static_assert(!hana::detail::fast_and<false, false, true>::value, "");
  20. static_assert(!hana::detail::fast_and<false, false, false>::value, "");
  21. static_assert(hana::detail::fast_and<true, true, true, true, true, true>::value, "");
  22. static_assert(!hana::detail::fast_and<true, true, true, false, true, true>::value, "");
  23. static_assert(!hana::detail::fast_and<true, true, true, true, true, false>::value, "");
  24. static_assert(!hana::detail::fast_and<false, true, true, true, true, true>::value, "");
  25. int main() { }