|
| constexpr | iota (incr_t start) |
| | Construct the adaptor for a one-value sequence.
|
| constexpr | iota (incr_t start, incr_t end) |
| | Construct the adaptor from a start and one-past-the-end value.
|
template<concepts::interval interval_t>
requires (!std::same_as<interval_t, iota>) |
| constexpr | iota (interval_t &&interval) |
| | Construct the adaptor from interval bounds.
|
|
constexpr | iota_view ()=default |
| | Default constructor (only works if imrementable_t is default constructible).
|
| constexpr | iota_view (incr_t start) |
| | Construct from just a start value to represent a single value seq.
|
| constexpr | iota_view (incr_t start, incr_t end) |
| | Construct from a start start and end value.
|
template<concepts::interval interval_t>
requires (!std::same_as<interval_t, iota_view>) |
| constexpr | iota_view (interval_t &&interval) |
| | Construct from an interval that defines start and end values.
|
| constexpr auto | begin () const -> iterator_t |
| constexpr auto | end () const -> iterator_t |
| constexpr auto | size () const -> incr_t |
| constexpr decltype(auto) | back () const |
| | Return a reference to the last element.
|
| constexpr auto | data () const |
| | Return a pointer to the first element, or null for an empty view.
|
| constexpr auto | empty () const -> bool |
| | Check whether the view contains no elements.
|
| constexpr decltype(auto) | front () const |
| | Return a reference to the first element.
|
| constexpr | operator bool () const |
| | Test whether the view contains at least one element.
|
| constexpr decltype(auto) | operator[] (const dindex i) const |
| | Subscript operator that takes detray dindex.
|
| constexpr auto | size () const |
| | Return the number of elements in the view.
|
template<std::incrementable incr_t>
struct detray::ranges::views::iota< incr_t >
interface type to construct a iota_view with CTAD Range adaptor that constructs an iota view from a range, bounds, or start value.