File indexing completed on 2025-01-18 09:40:48
0001 #ifndef BOOST_METAPARSE_V1_CPP11_ONE_OF_C_HPP
0002 #define BOOST_METAPARSE_V1_CPP11_ONE_OF_C_HPP
0003
0004
0005
0006
0007
0008
0009 #include <boost/metaparse/v1/one_char.hpp>
0010 #include <boost/metaparse/v1/accept_when.hpp>
0011 #include <boost/metaparse/v1/error/none_of_the_expected_cases_found.hpp>
0012 #include <boost/metaparse/v1/cpp11/impl/any_of_c.hpp>
0013
0014 #include <boost/mpl/eval_if.hpp>
0015
0016 namespace boost
0017 {
0018 namespace metaparse
0019 {
0020 namespace v1
0021 {
0022 template <char... Cs>
0023 struct one_of_c :
0024 accept_when<
0025 one_char,
0026 impl::any_of_c<Cs...>,
0027 error::none_of_the_expected_cases_found
0028 >
0029 {};
0030 }
0031 }
0032 }
0033
0034 #endif
0035