|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Validates that the input value equals one of the compile-time constants Allowed. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = Prev |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| template<class U> | |
| auto | operator() (ActionCtx< void > ctx, ActionResult< U > input) const -> ActionResult< U > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input |
Validates that the input value equals one of the compile-time constants Allowed.
| Allowed | Non-type template pack of allowed values. All must be the same type. |
| using cli::validation::OneOf< Allowed >::after_type = Prev |
| using cli::validation::OneOf< Allowed >::storage_type = void |
|
inline |
|
staticconstexpr |