CPP-AP 3.0.1
Command-line argument parser for C++20
Loading...
Searching...
No Matches
range.hpp File Reference

Defines the nargs::range class and it's builder functions. More...

#include <format>
#include <limits>
#include <ostream>

Go to the source code of this file.

Classes

class  ap::nargs::range
 Argument's number of values managing class. More...
 

Namespaces

namespace  ap
 
namespace  ap::nargs
 

Typedefs

using ap::nargs::count_type = std::size_t
 

Functions

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

Variables

constexpr count_type ap::nargs::min_bound = std::numeric_limits<count_type>::min()
 The minimum bound for the nargs::range class.
 
constexpr count_type ap::nargs::max_bound = std::numeric_limits<count_type>::max()
 The maximum bound for the nargs::range class.
 

Detailed Description

Defines the nargs::range class and it's builder functions.

Definition in file range.hpp.