]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/util/is_whitespace_c.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / util / is_whitespace_c.hpp
1 #ifndef BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
2 #define BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
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 util
18 {
19 template <char C>
20 struct is_whitespace_c : boost::mpl::false_ {};
21
22 template <> struct is_whitespace_c<' '> : boost::mpl::true_ {};
23 template <> struct is_whitespace_c<'\r'> : boost::mpl::true_ {};
24 template <> struct is_whitespace_c<'\n'> : boost::mpl::true_ {};
25 template <> struct is_whitespace_c<'\t'> : boost::mpl::true_ {};
26 }
27 }
28 }
29 }
30
31 #endif
32