[#always] [section always] [h1 Synopsis] template struct always; This is a [link parser_combinator parser combinator]. [table Arguments [[Name] [Type]] [[`P`] [[link parser parser]]] [[`T`] [[link metaprogramming_value template metaprogramming value]]] ] [h1 Description] It accepts an input if and only if `P` accepts it, but the result of parsing will be `T` instead of the result `P` returned. [h1 Header] #include [h1 Expression semantics] For any `p` parser and `t` class the following are equivalent: always last_of> [h1 Example] #include #include #include #include #include #include #include using namespace boost::metaparse; using always13 = always, std::integral_constant>; static_assert( !is_error>::type::value, "always13 should accept x" ); static_assert( std::is_same< get_result>::type, std::integral_constant >::type::value, "the result of parsing should be the integral_constant type" ); static_assert( is_error>::type::value, "always13 should reject characters other than x" ); [endsect]