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

#include <arg_router/forwarding_arg.hpp>

Inheritance diagram for arg_router::forwarding_arg_t< Policies >:
[legend]

Classes

class  help_data_type
 

Public Types

using value_type = typename parent_type::value_type
 

Public Member Functions

constexpr forwarding_arg_t (Policies... policies) noexcept
 

Additional Inherited Members

- Protected Types inherited from arg_router::multi_arg_base_t< vector< std::string_view >, 0, std::decay_t< Policies >... >
using value_type = vector< std::string_view >
 
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< vector< std::string_view >, 0, std::decay_t< 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... Policies>
class arg_router::forwarding_arg_t< Policies >

Represents a none-named argument on the command line that has multiple values that needs parsing, specifically for forwarding tokens verbatim.

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

Cannot only have a none name policy. The value_type is fixed as vector<std::string_view>.

Template Parameters
PoliciesPack of policies that define its behaviour

Definition at line 25 of file forwarding_arg.hpp.

Member Typedef Documentation

◆ value_type

template<typename... Policies>
using arg_router::forwarding_arg_t< Policies >::value_type = typename parent_type::value_type

Argument value type.

Definition at line 39 of file forwarding_arg.hpp.

Constructor & Destructor Documentation

◆ forwarding_arg_t()

template<typename... Policies>
constexpr arg_router::forwarding_arg_t< Policies >::forwarding_arg_t ( Policies...  policies)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
policiesPolicy instances

Definition at line 59 of file forwarding_arg.hpp.


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