|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Helper items | |||||||||||||||||
|
Member functions | ||||
(C++26) | ||||
Deduction guides | ||||
Iterator | ||||
Member functions | ||||
slide_view::iterator::operator++ slide_view::iterator::operator++(int) slide_view::iterator::operator-- slide_view::iterator::operator--(int) slide_view::iterator::operator+= slide_view::iterator::operator-= | ||||
Non-member functions | ||||
Sentinel | ||||
Member functions | ||||
Non-member functions | ||||
constexpr/*iterator*/& operator++(); | (1) | (since C++23) |
constexpr/*iterator*/ operator++(int); | (2) | (since C++23) |
constexpr/*iterator*/& operator--() requiresranges::bidirectional_range<Base>; | (3) | (since C++23) |
constexpr/*iterator*/ operator--(int) requiresranges::bidirectional_range<Base>; | (4) | (since C++23) |
constexpr/*iterator*/& operator+=( difference_type n) requiresranges::random_access_range<Base>; | (5) | (since C++23) |
constexpr/*iterator*/& operator-=( difference_type n) requiresranges::random_access_range<Base>; | (6) | (since C++23) |
Advances or decrements theiterator.
Letcurrent_
andlast_ele_
be the underlying iterators to the begin and end of the sliding window.
current_=ranges::next(current_);last_ele_=ranges::next(last_ele_);// if last_ele_ is presentreturn*this;
current_
andlast_ele_
(if present) must be incrementable.current_=ranges::prev(current_);last_ele_=ranges::prev(last_ele_);// if last_ele_ is presentreturn*this;
current_
andlast_ele_
(if present) must be decrementable.current_= current_+ n;last_ele_= last_ele_+ n;// if last_ele_ is presentreturn*this;
last_ele_
is present) must have well-defined behavior.current_= current_- n;last_ele_= last_ele_- n;// if last_ele_ is presentreturn*this;
last_ele_
is present) must have well-defined behavior.Contents |
n | - | position relative to current location |
This section is incomplete Reason: no example |
(C++23) | performs iterator arithmetic (function) |