std::ranges::take_while_view<V,Pred>::end - cppreference.com (original) (raw)
Returns a sentinel representing the end of the view.
Let base_ denote the underlying view.
Overload (1) does not participate in overload resolution if V
is a simple view (that is, if V
and const V are views with the same iterator and sentinel types).
[edit] Parameters
(none)
[edit] Return value
A sentinel representing the end of the view.
[edit] Example
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3450 | C++20 | the const overload might return a sentinel non-comparable to the iterator | constrained |