arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::positional_arg_t< T, Policies > Class Template Reference

#include <arg_router/positional_arg.hpp>

Inheritance diagram for arg_router::positional_arg_t< T, Policies >:
[legend]

Classes

class  help_data_type
 

Public Types

using value_type = T
 

Public Member Functions

constexpr positional_arg_t (Policies... policies) noexcept
 

Additional Inherited Members

- Protected Types inherited from arg_router::multi_arg_base_t< T, 0, Policies... >
using value_type = T
 
using help_data_type = typename parent_type::template default_leaf_help_data_type< Flatten >
 
- Protected Member Functions inherited from arg_router::multi_arg_base_t< T, 0, Policies... >
constexpr multi_arg_base_t (Policies... policies, std::enable_if_t< has_min_max > *=nullptr) noexcept
 
value_type parse (parsing::parse_target target, const Parents &... parents) const
 

Detailed Description

template<typename T, typename... Policies>
class arg_router::positional_arg_t< T, Policies >

Represents a positional argument on the command line that has potentially multiple values that need parsing.

If no policy implementing minimum_count() and maximum_count() methods is used (e.g. policy::min_max_count_t), then an unbounded policy::min_max_count_t is prepended to the policies internally.

A policy::token_end_marker_t can be used to mark the end of a variable length value token list on the command line.

Template Parameters
TArgument value type, must have a push_back(..) method
PoliciesPack of policies that define its behaviour

Definition at line 27 of file positional_arg.hpp.

Member Typedef Documentation

◆ value_type

template<typename T , typename... Policies>
using arg_router::positional_arg_t< T, Policies >::value_type = T

Argument value type.

Definition at line 44 of file positional_arg.hpp.

Constructor & Destructor Documentation

◆ positional_arg_t()

template<typename T , typename... Policies>
constexpr arg_router::positional_arg_t< T, Policies >::positional_arg_t ( Policies...  policies)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
policiesPolicy instances

Definition at line 71 of file positional_arg.hpp.


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