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

Typedefs

template<typename T >
using allocator = std::allocator< T >
 

Variables

constexpr auto long_prefix = std::string_view{ "--" }
 
constexpr auto short_prefix = std::string_view{ "-" }
 

Detailed Description

Build configuration-defined constants.

There are a few core parts of arg_router that are configurable as compile defines, all are available as CMake cache variables too (minus the "AR_" prefix).

Typedef Documentation

◆ allocator

template<typename T >
using arg_router::config::allocator = typedef std::allocator <T>

Allocator for all STL types.

Template Parameters
TType to allocate for

Definition at line 70 of file config.hpp.

Variable Documentation

◆ long_prefix

constexpr auto arg_router::config::long_prefix = std::string_view{ "--" }
constexpr

Long form argument prefix.

UTF-8 supporting. Must be the same or longer than short_prefix (in terms of characters).

Definition at line 52 of file config.hpp.

◆ short_prefix

constexpr auto arg_router::config::short_prefix = std::string_view{ "-" }
constexpr

Short form argument prefix.

UTF-8 supporting. Must be one characters long.

Definition at line 58 of file config.hpp.