CPP-AP 2.7.0
Command-line argument parser for C++20
Loading...
Searching...
No Matches
ap::nargs Namespace Reference

Classes

class  range
 Argument's number of values managing class. More...
 

Functions

range at_least (const range::count_type n) noexcept
 range class builder function. Creates a range [n, inf].
 
range more_than (const range::count_type n) noexcept
 range class builder function. Creates a range [n + 1, inf].
 
range less_than (const range::count_type n) noexcept
 range class builder function. Creates a range [0, n - 1].
 
range up_to (const range::count_type n) noexcept
 range class builder function. Creates a range [0, n].
 
range any () noexcept
 range class builder function. Creates a range [0, inf].
 

Function Documentation

◆ any()

range ap::nargs::any ( )
inlinenoexcept

range class builder function. Creates a range [0, inf].

Returns
Built range class instance.

Definition at line 170 of file range.hpp.

◆ at_least()

range ap::nargs::at_least ( const range::count_type  n)
inlinenoexcept

range class builder function. Creates a range [n, inf].

Parameters
nThe lower bound.
Returns
Built range class instance.

Definition at line 135 of file range.hpp.

◆ less_than()

range ap::nargs::less_than ( const range::count_type  n)
inlinenoexcept

range class builder function. Creates a range [0, n - 1].

Parameters
nThe upper bound
Returns
Built range class instance.

Definition at line 153 of file range.hpp.

◆ more_than()

range ap::nargs::more_than ( const range::count_type  n)
inlinenoexcept

range class builder function. Creates a range [n + 1, inf].

Parameters
nThe lower bound.
Returns
Built range class instance.

Definition at line 144 of file range.hpp.

◆ up_to()

range ap::nargs::up_to ( const range::count_type  n)
inlinenoexcept

range class builder function. Creates a range [0, n].

Parameters
nThe upper bound
Returns
Built range class instance.

Definition at line 162 of file range.hpp.