|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Writes the value directly into an external variable via a T* pointer. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = void |
| template<class Prev> | |
| using | storage_type = T* |
Public Member Functions | |
| auto | operator() (ActionCtx< T * > ctx, ActionResult< T > input) const -> ActionResult< void > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input = std::same_as<detail::decay_t<Prev>, T> |
Writes the value directly into an external variable via a T* pointer.
Storage type: T*. The pointer must be non-null at the time of parsing; returns ErrorCode::validation_failed with a descriptive message if the pointer is null. Used as the action for BoundOption.
| T | The type of the external variable. |
|
inline |
|
staticconstexpr |