On this page
std::ranges::iota_view<W, Bound>::sentinel
|
(since C++20) (exposition only*) |
The return type of iota_view::end, used when the iota_view is bounded (i.e. Bound is not std::unreachable_sentinel_t) and Bound and W are not the same type.
Data members
| Member name | Definition |
|---|---|
bound_ (private) |
Typically, a numeric object of type Bound.(exposition-only member object*) |
Member functions
std::ranges::iota_view::sentinel::sentinel
|
(1) | (since C++20) |
|
(2) | (since C++20) |
bound_ via its default member initializer (= Bound()).
bound_ with bound.
Non-member functions
In the following descriptions, value_ is an underlying data member of iterator from which its operator* copies.
operator==(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
|
(since C++20) |
Equivalent to: return x.value_ == y.bound_;.
The != operator is synthesized from operator==.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when sentinel is an associated class of the arguments.
operator-(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
|
(1) | (since C++20) |
|
(2) | (since C++20) |
return x.value_ - y.bound_;.
return -(y.value_ - x.bound_);.
These functions are not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when sentinel is an associated class of the arguments.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/iota_view/sentinel