CPP-AP 2.2.6
Command-line argument parser for C++20
|
A visitor structure used to apply value actions. More...
#include <utility.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
void | operator() (const callable_type< action_type::observe, value_type > &action) const |
The call operator overload for the observe action type. | |
void | operator() (const callable_type< action_type::transform, value_type > &action) const |
The call operator overload for the transform action type. | |
void | operator() (const callable_type< action_type::modify, value_type > &action) const |
The call operator overload for the modify action type. | |
Public Attributes | |
value_type & | value |
A reference to the argument's value for which the action will be applied. | |
A visitor structure used to apply value actions.
T | The argument's value type |
Definition at line 50 of file utility.hpp.
using ap::action::detail::apply_visitor< T >::value_type = T |
Definition at line 51 of file utility.hpp.
|
inline |
The call operator overload for the modify action type.
action | The modify action callable. |
Definition at line 73 of file utility.hpp.
|
inline |
The call operator overload for the observe action type.
action | The observe action callable. |
Definition at line 57 of file utility.hpp.
|
inline |
The call operator overload for the transform action type.
action | The transform action callable. |
Definition at line 65 of file utility.hpp.
value_type& ap::action::detail::apply_visitor< T >::value |
A reference to the argument's value for which the action will be applied.
Definition at line 77 of file utility.hpp.