Class Subspace :: sus :: ops :: RangeFull

template <class T>
class RangeFull final
requires
sus::cmp::Ord<T>
{ ... };

An unbounded range (..).

RangeFull is primarily used as a slicing index. It cannot serve as an Iterator because it doesn't have a starting point.

A RangeFull can be constructed as a literal as ".."_r.

Methods

auto contains(const T&) const -> bool

Returns true if item is contained in the range. For RangeFull it is always true.

auto end_at(T t) const& -> RangeTo<T>
requires
sus::mem::Copy<T>
auto end_at(T t) && -> RangeTo<T>

Return a new Range that has no start and ends at t.

auto end_bound() const& -> Option<const T&>
auto end_bound() && -> Option<const T&>
deleted

Returns None for the end of the RangeBounds.

Part of the sus::ops::RangeBounds trait.

auto start_at(T t) const& -> RangeFrom<T>
requires
sus::mem::Copy<T>
auto start_at(T t) && -> RangeFrom<T>

Return a new Range that starts at t and has no end.

auto start_bound() const& -> Option<const T&>
auto start_bound() && -> Option<const T&>
deleted

Returns None for the start of the RangeBounds.

Part of the sus::ops::RangeBounds trait.

Operators

auto operator==(const RangeFull<T>& rhs) const -> bool
requires
sus::cmp::Eq<T>