3 Defines `boost::hana::Sequence`.
5 @copyright Louis Dionne 2013-2016
6 Distributed under the Boost Software License, Version 1.0.
7 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_HANA_CONCEPT_SEQUENCE_HPP
11 #define BOOST_HANA_CONCEPT_SEQUENCE_HPP
13 #include <boost/hana/fwd/concept/sequence.hpp>
15 #include <boost/hana/config.hpp>
16 #include <boost/hana/core/tag_of.hpp>
17 #include <boost/hana/core/when.hpp>
20 BOOST_HANA_NAMESPACE_BEGIN
22 template <typename S, typename Tag = typename hana::tag_of<S>::type>
23 struct sequence_dispatch {
24 static constexpr bool value = hana::Sequence<Tag>::value;
28 struct sequence_dispatch<S, S> {
29 static constexpr bool value = false;
34 template <typename S, bool condition>
35 struct Sequence<S, when<condition>>
36 : detail::sequence_dispatch<S>
39 BOOST_HANA_NAMESPACE_END
41 #endif // !BOOST_HANA_CONCEPT_SEQUENCE_HPP