|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Converts a string token to a floating-point 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 a floating-point type T using std::from_chars.
Returns ErrorCode::invalid_value for non-numeric or partially-consumed input, and ErrorCode::out_of_range on overflow.
| T | The target floating-point type (e.g. float, double). |
| using cli::conversion::Floating< T >::after_type = T |
| using cli::conversion::Floating< T >::storage_type = void |
|
inlineconstexpr |
|
staticconstexpr |