template<typename T>
inline String toString(TRange<T> range)
template<typename T>
struct TRange
#include <Range.h>

Manage a range of numbers between specified limits.

Values in the range meet the criteria (min <= value <= max)

Public Functions

inline constexpr TRange()
inline constexpr TRange(T min, T max)
inline constexpr TRange(T count)
inline bool contains(T value) const

Determine if range contains a value.

template<typename Q>
inline bool contains(const TRange<Q> &value) const

Determine if range contains another range (subset)

inline T clip(T value) const

Clip values to within the range.

inline T random() const

Return a random value within the range.

inline Iterator begin() const
inline Iterator end() const
inline String toString() const
inline operator String() const

Public Members

T min = {}
T max = {}
class Iterator
#include <Range.h>

Public Types

using value_type = T
using difference_type = std::ptrdiff_t
using pointer = T*
using reference = T&
using iterator_category = std::random_access_iterator_tag

Public Functions

inline Iterator(T value)
inline T operator*() const
inline bool operator==(const Iterator &other) const
inline bool operator!=(const Iterator &other) const
inline Iterator operator++(int)
inline Iterator &operator++()

Private Members

T value