Euphoria
eu::R< T > Struct Template Reference

A (inclusive) range between two values. More...

Public Member Functions

constexpr R (T min, T max)
 Asserts if max is below min.
get_distance () const

Public Attributes

lower_bound
upper_bound

Detailed Description

template<typename T>
struct eu::R< T >

A (inclusive) range between two values.

Zero range is allowed.

Definition at line 18 of file range.h.

Constructor & Destructor Documentation

◆ R()

template<typename T>
eu::R< T >::R ( T min,
T max )
inlineconstexpr

Asserts if max is below min.

Definition at line 24 of file range.h.

Member Function Documentation

◆ get_distance()

template<typename T>
T eu::R< T >::get_distance ( ) const
inlinenodiscard

Definition at line 30 of file range.h.

Member Data Documentation

◆ lower_bound

template<typename T>
T eu::R< T >::lower_bound

Definition at line 20 of file range.h.

◆ upper_bound

template<typename T>
T eu::R< T >::upper_bound

Definition at line 21 of file range.h.


The documentation for this struct was generated from the following file: