RESTinio
Loading...
Searching...
No Matches
restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > > Struct Template Reference

#include <easy_parser.hpp>

Public Types

using result_type = std::basic_string< Char, Args... >
using value_type = Char
using wrapped_type = result_type

Static Public Member Functions

static void as_result (wrapped_type &to, result_type &&what)
static void to_container (wrapped_type &to, value_type &&what)
static void to_container (wrapped_type &to, wrapped_type &&what)
 Special overload for the case when std::string should be added to another std::string.
static result_type && unwrap_value (wrapped_type &v)

Detailed Description

template<typename Char, typename... Args>
struct restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >

Definition at line 355 of file easy_parser.hpp.

Member Typedef Documentation

◆ result_type

template<typename Char, typename... Args>
using restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::result_type = std::basic_string< Char, Args... >

Definition at line 357 of file easy_parser.hpp.

◆ value_type

template<typename Char, typename... Args>
using restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::value_type = Char

Definition at line 358 of file easy_parser.hpp.

◆ wrapped_type

template<typename Char, typename... Args>
using restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::wrapped_type = result_type

Definition at line 359 of file easy_parser.hpp.

Member Function Documentation

◆ as_result()

template<typename Char, typename... Args>
void restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::as_result ( wrapped_type & to,
result_type && what )
inlinestatic

Definition at line 362 of file easy_parser.hpp.

◆ to_container() [1/2]

template<typename Char, typename... Args>
void restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::to_container ( wrapped_type & to,
value_type && what )
inlinestatic

Definition at line 368 of file easy_parser.hpp.

◆ to_container() [2/2]

template<typename Char, typename... Args>
void restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::to_container ( wrapped_type & to,
wrapped_type && what )
inlinestatic

Special overload for the case when std::string should be added to another std::string.

For example, in cases like:

...
)
auto to_container()
A factory function to create a to_container_consumer.
auto produce(Clauses &&... clauses)
A factory function to create a producer that creates an instance of the target type by using specifie...

Definition at line 387 of file easy_parser.hpp.

◆ unwrap_value()

template<typename Char, typename... Args>
result_type && restinio::easy_parser::result_value_wrapper< std::basic_string< Char, Args... > >::unwrap_value ( wrapped_type & v)
inlinestaticnodiscard

Definition at line 394 of file easy_parser.hpp.


The documentation for this struct was generated from the following file: