30template <is::realNumber ValueType>
45 VCTR_ASSERT (end >= start);
62 VCTR_ASSERT (start <= end);
69 VCTR_ASSERT (start <= end);
A simple range class.
Definition: Range.h:32
constexpr Range()=default
Constructs an empty range.
constexpr ValueType getStart() const noexcept
Returns the start of the range.
Definition: Range.h:74
constexpr Range(Range &&)=default
Move constructor.
constexpr Range(const Range &)=default
Copy constructor.
constexpr void setStart(ValueType newStart) noexcept
Sets a new start value.
Definition: Range.h:59
constexpr ValueType getEnd() const noexcept
Returns the end of the range.
Definition: Range.h:80
constexpr void setEnd(ValueType newEnd) noexcept
Sets a new end value.
Definition: Range.h:66
constexpr ValueType getLength() const noexcept
Returns the length of the range.
Definition: Range.h:77
constexpr Range(ValueType startValue, ValueType endValue) noexcept
Constructs a range with given start and end values.
Definition: Range.h:41
The main namespace of the VCTR project.
Definition: Array.h:24
typename detail::ValueType< std::remove_cvref_t< T > >::Type ValueType
If T is an expression template, it equals its return type, if it's a type that defines value_type as ...
Definition: Traits.h:201