RESTinio
|
A consumer for the case when the current value should be returned as the result for the producer at one level up. More...
#include <easy_parser.hpp>
Public Member Functions | |
template<typename Target_Type , typename Value > | |
void | consume (Target_Type &dest, Value &&src) const |
Additional Inherited Members | |
![]() | |
static constexpr entity_type_t | entity_type = entity_type_t::consumer |
A consumer for the case when the current value should be returned as the result for the producer at one level up.
For example that consumer can be necessary for rules like that:
T := 'v' '=' token
such rule will be implemented by a such sequence of clauses:
The result of token_p()
producer in a subclause should be returned as the result of top-level producer.
Definition at line 2869 of file easy_parser.hpp.
|
inline |
Definition at line 2873 of file easy_parser.hpp.