|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Converts a string token to an integral type T using std::from_chars. More...
#include <action.hh>
Public Types | |
| template<class Input> | |
| using | after_type = T |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| constexpr auto | operator() (ActionCtx< void > ctx, ActionResult< std::string_view > input) const -> ActionResult< T > |
Static Public Attributes | |
| template<class Input> | |
| static constexpr bool | accepts_input |
Converts a string token to an integral type T using std::from_chars.
Returns ErrorCode::invalid_value for non-numeric or partially-consumed input, and ErrorCode::out_of_range when the value overflows T.
| T | The target integral type (e.g. int, unsigned long). |
| using cli::conversion::Integer< T >::storage_type = void |
|
inlineconstexpr |
|
staticconstexpr |