fast_and.hpp 600 B

12345678910111213141516171819202122232425
  1. /*!
  2. @file
  3. Defines `boost::hana::detail::fast_and`.
  4. @copyright Louis Dionne 2013-2017
  5. Distributed under the Boost Software License, Version 1.0.
  6. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_HANA_DETAIL_FAST_AND_HPP
  9. #define BOOST_HANA_DETAIL_FAST_AND_HPP
  10. #include <boost/hana/config.hpp>
  11. #include <type_traits>
  12. BOOST_HANA_NAMESPACE_BEGIN namespace detail {
  13. template <bool ...b>
  14. struct fast_and
  15. : std::is_same<fast_and<b...>, fast_and<(b, true)...>>
  16. { };
  17. } BOOST_HANA_NAMESPACE_END
  18. #endif // !BOOST_HANA_DETAIL_FAST_AND_HPP