Template Struct Range

Struct Documentation

template<typename T>
struct Range

a range check for numbers

Public Functions

inline bool operator()(T n) const
inline std::string format() const

Public Members

std::optional<T> lower_limit
std::optional<T> upper_limit

Public Static Functions

static inline Range up_to(T upper_limit)
static inline Range at_least(T lower_limit)
static inline Range between(T lower_limit, T upper_limit)
static inline Range exactly(T limit)