|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Converts a string token to NegatableResult by detecting a compile-time negation prefix. More...
#include <action.hh>
Public Types | |
| template<class Input> | |
| using | after_type = NegatableResult |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| constexpr auto | operator() (ActionCtx< void >, ActionResult< std::string_view > input) const -> ActionResult< NegatableResult > |
Static Public Attributes | |
| template<class Input> | |
| static constexpr bool | accepts_input |
Converts a string token to NegatableResult by detecting a compile-time negation prefix.
Given prefix "no-":
| Prefix | The negation prefix string (e.g. "no-", "!"). |
| using cli::conversion::Negatable< Prefix >::after_type = NegatableResult |
| using cli::conversion::Negatable< Prefix >::storage_type = void |
|
inlineconstexpr |
|
staticconstexpr |