1234567891011121314151617181920212223242526272829303132 |
- #ifndef BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
- #define BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
- #include <boost/mpl/bool.hpp>
- namespace boost
- {
- namespace metaparse
- {
- namespace v1
- {
- namespace util
- {
- template <char C>
- struct is_whitespace_c : boost::mpl::false_ {};
- template <> struct is_whitespace_c<' '> : boost::mpl::true_ {};
- template <> struct is_whitespace_c<'\r'> : boost::mpl::true_ {};
- template <> struct is_whitespace_c<'\n'> : boost::mpl::true_ {};
- template <> struct is_whitespace_c<'\t'> : boost::mpl::true_ {};
- }
- }
- }
- }
- #endif
|