]>
Commit | Line | Data |
---|---|---|
1 | #ifndef BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_HPP | |
2 | #define BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_HPP | |
3 | ||
4 | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010. | |
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/metaparse/v1/util/is_whitespace_c.hpp> | |
10 | ||
11 | #include <boost/mpl/vector.hpp> | |
12 | ||
13 | namespace boost | |
14 | { | |
15 | namespace metaparse | |
16 | { | |
17 | namespace v1 | |
18 | { | |
19 | namespace util | |
20 | { | |
21 | template <class C = boost::mpl::na> | |
22 | struct is_whitespace : is_whitespace_c<C::type::value> {}; | |
23 | ||
24 | template <> | |
25 | struct is_whitespace<boost::mpl::na> | |
26 | { | |
27 | typedef is_whitespace type; | |
28 | ||
29 | template <class C = boost::mpl::na> | |
30 | struct apply : is_whitespace<C> {}; | |
31 | }; | |
32 | } | |
33 | } | |
34 | } | |
35 | } | |
36 | ||
37 | #endif | |
38 |