Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:37:40

0001 /*!
0002 @file
0003 Defines `boost::hana::Iterable`.
0004 
0005 Copyright Louis Dionne 2013-2022
0006 Distributed under the Boost Software License, Version 1.0.
0007 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
0008  */
0009 
0010 #ifndef BOOST_HANA_CONCEPT_ITERABLE_HPP
0011 #define BOOST_HANA_CONCEPT_ITERABLE_HPP
0012 
0013 #include <boost/hana/fwd/concept/iterable.hpp>
0014 
0015 #include <boost/hana/at.hpp>
0016 #include <boost/hana/config.hpp>
0017 #include <boost/hana/core/default.hpp>
0018 #include <boost/hana/core/tag_of.hpp>
0019 #include <boost/hana/detail/integral_constant.hpp>
0020 #include <boost/hana/drop_front.hpp>
0021 #include <boost/hana/is_empty.hpp>
0022 
0023 
0024 namespace boost { namespace hana {
0025     template <typename It>
0026     struct Iterable
0027         : hana::integral_constant<bool,
0028             !is_default<at_impl<typename tag_of<It>::type>>::value &&
0029             !is_default<drop_front_impl<typename tag_of<It>::type>>::value &&
0030             !is_default<is_empty_impl<typename tag_of<It>::type>>::value
0031         >
0032     { };
0033 }} // end namespace boost::hana
0034 
0035 #endif // !BOOST_HANA_CONCEPT_ITERABLE_HPP