|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Invokes a compile-time callable Fn with the parsed value as a terminal action. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = void |
| template<class Prev> | |
| using | storage_type = std::monostate |
Public Member Functions | |
| template<class T> | |
| auto | operator() (ActionCtx< std::monostate > ctx, ActionResult< T > input) const -> ActionResult< void > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input = CallbackInvocable<Fn, Prev> |
Invokes a compile-time callable Fn with the parsed value as a terminal action.
Fn may have any of the following signatures:
Storage type: std::monostate (no value is stored; the callback is the only effect).
| Fn | A constexpr callable to invoke. |
| using cli::pack::Callback< Fn >::storage_type = std::monostate |
|
inline |
|
staticconstexpr |