1 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_IS_NONE_C_IMPL_HPP 2 #define BOOST_METAPARSE_V1_CPP11_IMPL_IS_NONE_C_IMPL_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 <char D, char... Cs> 20 struct is_none_c_impl; 21 22 template <char D> 23 struct is_none_c_impl<D> : boost::mpl::bool_<true> {}; 24 25 template <char D, char... Cs> 26 struct is_none_c_impl<D, D, Cs...> : boost::mpl::bool_<false> {}; 27 28 template <char D, char C, char... Cs> 29 struct is_none_c_impl<D, C, Cs...> : is_none_c_impl<D, Cs...> {}; 30 } 31 } 32 } 33 } 34 35 #endif 36 37