]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/hana/concept/integral_constant.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / hana / concept / integral_constant.hpp
CommitLineData
7c673cae
FG
1/*!
2@file
3Defines `boost::hana::IntegralConstant`.
4
b32b8144 5@copyright Louis Dionne 2013-2017
7c673cae
FG
6Distributed under the Boost Software License, Version 1.0.
7(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
8 */
9
10#ifndef BOOST_HANA_CONCEPT_INTEGRAL_CONSTANT_HPP
11#define BOOST_HANA_CONCEPT_INTEGRAL_CONSTANT_HPP
12
13#include <boost/hana/fwd/concept/integral_constant.hpp>
14
15#include <boost/hana/config.hpp>
16#include <boost/hana/core/tag_of.hpp>
b32b8144 17#include <boost/hana/detail/integral_constant.hpp>
7c673cae
FG
18
19
1e59de90 20namespace boost { namespace hana {
7c673cae
FG
21 namespace detail {
22 template <typename C, typename Tag = typename tag_of<C>::type>
b32b8144
FG
23 struct integral_constant_dispatch
24 : hana::integral_constant<bool,
25 hana::IntegralConstant<Tag>::value
26 >
27 { };
7c673cae
FG
28
29 template <typename C>
b32b8144
FG
30 struct integral_constant_dispatch<C, C>
31 : hana::integral_constant<bool, false>
32 { };
7c673cae
FG
33 }
34
35 //! @cond
36 template <typename C>
37 struct IntegralConstant
38 : detail::integral_constant_dispatch<C>
39 { };
40 //! @endcond
1e59de90 41}} // end namespace boost::hana
7c673cae
FG
42
43#endif // !BOOST_HANA_CONCEPT_INTEGRAL_CONSTANT_HPP