arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/default_value.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
constexpr | default_value (value_type value) noexcept |
template<typename ValueType , typename... Parents> | |
constexpr ValueType | missing_phase ([[maybe_unused]] const Parents &... parents) const noexcept |
Static Public Attributes | |
constexpr static auto | priority = std::size_t{500} |
Provides a default value for non-required arguments.
T | Value type |
Definition at line 17 of file default_value.hpp.
using arg_router::policy::default_value< T >::value_type = T |
Alias of T.
Definition at line 21 of file default_value.hpp.
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
Called when the owning node's token (if any) is missing from the command line, this will return the default value.
ValueType | Parsed value type, must be implicitly constructible from value_type |
Parents | Pack of parent tree nodes in ascending ancestry order |
parents | Parents instances pack |
Definition at line 41 of file default_value.hpp.
|
staticconstexpr |
Policy priority.
Definition at line 24 of file default_value.hpp.