[#return_] [section return_] [h1 Synopsis] template struct return_; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`C`] [[link metaprogramming_value template metaprogramming value]]] ] [h1 Description] `return_` accepts every input. The result of parsing is `C`, the remaining string is the input string. [h1 Header] #include [h1 Expression semantics] For any `c` class, `s` compile-time string and `pos` source position the following are equivalent get_result::apply>::type c get_remaining::apply>::type s get_position::apply>::type pos [h1 Example] #include #include #include #include #include #include #include using namespace boost::metaparse; using default_value = std::integral_constant; using optional_number = one_of>; static_assert( get_result< optional_number::apply >::type::value == 11, "when a number is provided, it is the result of parsing" ); static_assert( get_result< optional_number::apply >::type::value == 13, "when no number is provided, the default value is the result of parsing" ); [endsect]