template<typename T>
gtopt::IotaRange class

Lightweight replacement for std::views::iota (not available in libc++ 21). Returns a random-access range [first, last) that is compatible with range adaptors such as std::views::reverse and std::views::transform.

Public types

class iterator

Constructors, destructors, conversion operators

IotaRange(T first, T last) constexpr

Public functions

auto begin() const -> iterator
auto empty() const -> bool
auto end() const -> iterator
auto size() const -> std::size_t