RESTinio
Public Types | Static Public Member Functions | List of all members
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. More...
 
static RESTINIO_NODISCARD 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 354 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 356 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 357 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 358 of file easy_parser.hpp.

Member Function Documentation

◆ as_result()

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

Definition at line 361 of file easy_parser.hpp.

◆ to_container() [1/2]

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

Definition at line 367 of file easy_parser.hpp.

◆ to_container() [2/2]

template<typename Char , typename... Args>
static 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:

produce< std::string >(
produce< std::string >(...) >> to_container(),
produce< std::string >(...) >> to_container(),
...
)

Definition at line 386 of file easy_parser.hpp.

◆ unwrap_value()

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

Definition at line 393 of file easy_parser.hpp.


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