arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::policy::required_t< typename > Class Template Reference

#include <arg_router/policy/required.hpp>

Public Member Functions

template<typename ValueType , typename... Parents>
ValueType missing_phase ([[maybe_unused]] const Parents &... parents) const
 

Static Public Attributes

constexpr static auto priority = std::size_t{450}
 

Detailed Description

template<typename = void>
class arg_router::policy::required_t< typename >

Used to a mark a command line argument type as required i.e. it is a parse error if the token is missing.

Definition at line 19 of file required.hpp.

Member Function Documentation

◆ missing_phase()

template<typename = void>
template<typename ValueType , typename... Parents>
ValueType arg_router::policy::required_t< typename >::missing_phase ( [[maybe_unused] ] const Parents &...  parents) const
inline

Throw an error.

Template Parameters
ValueTypeParsed value type, not used in this method
ParentsPack of parent tree nodes in ascending ancestry order
Parameters
parentsParents instances pack, not used in this method
Returns
Nothing, it will throw if called
Exceptions
multi_lang_exceptionThrown if this method is called

Definition at line 34 of file required.hpp.

Member Data Documentation

◆ priority

template<typename = void>
constexpr static auto arg_router::policy::required_t< typename >::priority = std::size_t{450}
staticconstexpr

Policy priority.

Definition at line 23 of file required.hpp.


The documentation for this class was generated from the following file: