arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::utility::string_to_policy Namespace Reference

Classes

class  first_string_mapper
 
class  second_string_mapper
 
class  single_char_mapper
 
class  first_text_mapper
 
class  second_text_mapper
 

Functions

template<typename... Mappings, typename... Params>
constexpr auto convert (Params &&... params) noexcept
 

Detailed Description

Namespace for converting compile-time strings to policies when used in node factory functions.

Function Documentation

◆ convert()

template<typename... Mappings, typename... Params>
constexpr auto arg_router::utility::string_to_policy::convert ( Params &&...  params)
constexprnoexcept

Converts the input parameter pack to a tuple where any compile-time strings have been mapped to policies.

Template Parameters
MappingCollectionTuple of mappers, which define which strings get mapped to which policies
Parameters
paramsInput parameters destined for a node's factory function
Returns
Tuple of parameters

Definition at line 186 of file string_to_policy.hpp.