RESTinio
|
A metafunction that checks is Result_Type can be used as the result of transformation method. More...
#include <easy_parser.hpp>
Static Public Attributes | |
static constexpr bool | value = true |
A metafunction that checks is Result_Type can be used as the result of transformation method.
A transformation method can return a value of type T or a value of type expected_t<T, error_reason_t>. But a user can define transformation method that returns an expected_t<T, parse_error_t> just by a mistake. That mistake should be detected.
Metafunction is_appropriate_transformer_result_type serves that purpose: it defines value to true
if transformation method returns T or expected_t<T, error_reason_t>. In the case of expected_t<T, parse_error_t> value will be set to `false.
Definition at line 1110 of file easy_parser.hpp.
|
staticconstexpr |
Definition at line 1112 of file easy_parser.hpp.