RESTinio
|
A template for producing a value of specific type of a sequence of entities from the input stream. More...
#include <easy_parser.hpp>
Public Member Functions | |
produce_t (Subitems_Tuple &&subitems) | |
RESTINIO_NODISCARD expected_t< Target_Type, parse_error_t > | try_parse (source_t &from) |
Private Types | |
using | value_wrapper_t = result_value_wrapper< Target_Type > |
Private Attributes | |
Subitems_Tuple | m_subitems |
Additional Inherited Members | |
![]() | |
using | result_type = Target_Type |
![]() | |
static constexpr entity_type_t | entity_type |
A template for producing a value of specific type of a sequence of entities from the input stream.
Creates a new empty object of type Target_Type in try_parse
and then call try_process
methods for every subitems. A reference to that new object is passed to every try_process
call.
Target_Type | the type of value to be produced. |
Subitems_Tuple | the type of std::tuple with items for every clause to be checked. |
Definition at line 2009 of file easy_parser.hpp.
|
private |
Definition at line 2011 of file easy_parser.hpp.
|
inline |
Definition at line 2016 of file easy_parser.hpp.
|
inline |
Definition at line 2023 of file easy_parser.hpp.
|
private |
Definition at line 2013 of file easy_parser.hpp.