RESTinio
|
A transformator that uses a user supplied function/functor for conversion a value from one type to another. More...
#include <easy_parser.hpp>
Public Member Functions | |
template<typename Convert_Arg > | |
convert_transformer_t (Convert_Arg &&converter) noexcept(noexcept(Converter{std::forward< Convert_Arg >(converter)})) | |
template<typename Input > | |
RESTINIO_NODISCARD auto | transform (Input &&input) const noexcept(noexcept(m_converter(std::forward< Input >(input)))) |
Performs the transformation by calling the converter. More... | |
Private Attributes | |
Converter | m_converter |
Additional Inherited Members | |
![]() | |
using | result_type = Output_Type |
![]() | |
static constexpr entity_type_t | entity_type |
A transformator that uses a user supplied function/functor for conversion a value from one type to another.
Definition at line 3173 of file easy_parser.hpp.
|
inlinenoexcept |
Definition at line 3179 of file easy_parser.hpp.
|
inlinenoexcept |
Performs the transformation by calling the converter.
auto
. That allows to use converters that returns expected_t<Output_Type, error_reason_t>. Definition at line 3195 of file easy_parser.hpp.
|
private |
Definition at line 3175 of file easy_parser.hpp.