1 #ifndef BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
2 #define BOOST_METAPARSE_V1_UTIL_IS_WHITESPACE_C_HPP
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)
9 #include <boost/mpl/bool.hpp>
20 struct is_whitespace_c : boost::mpl::false_ {};
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_ {};