[#empty] [section empty] [h1 Synopsis] template struct empty; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`Result`] [[link metaprogramming_value template metaprogramming value]]] ] [h1 Description] It accepts empty input only. The result of parsing is the `Result` argument. [h1 Header] #include [h1 Expression semantics] For any `c` class the following are equivalent: empty except [h1 Example] #include #include #include #include #include #include using namespace boost::metaparse; using want_empty = empty; static_assert( !is_error>::type::value, "empty accepts the empty input" ); static_assert( is_error>::type::value, "empty should reject non-empty input" ); static_assert( std::is_same< get_result>::type, BOOST_METAPARSE_STRING("result") >::type::value, "the result of parsing should be the given value" ); [endsect]