]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/metaparse/v1/cpp11/impl/or_c.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / metaparse / v1 / cpp11 / impl / or_c.hpp
1 #ifndef BOOST_METAPARSE_V1_CPP11_OR_C_HPP
2 #define BOOST_METAPARSE_V1_CPP11_OR_C_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2017.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <boost/mpl/bool.hpp>
10
11 namespace boost
12 {
13 namespace metaparse
14 {
15 namespace v1
16 {
17 namespace impl
18 {
19 template <bool... Bs>
20 struct or_c;
21
22 template <>
23 struct or_c<> : boost::mpl::false_ {};
24
25 template <bool... Bs>
26 struct or_c<true, Bs...> : boost::mpl::true_ {};
27
28 template <bool... Bs>
29 struct or_c<false, Bs...> : or_c<Bs...> {};
30 }
31 }
32 }
33 }
34
35 #endif
36