constexprauto end() requires(!/*simple-view*/<V>); | (1) | (since C++20) |
| (2) | (since C++20) |
| | |
Returns asentinel representing the end of the view.
Letbase_ denote the underlying view.
Overload(1) does not participate in overload resolution ifV is asimple view (that is, ifV andconst V are views with the same iterator and sentinel types).
[edit]Parameters
(none)
[edit]Return value
Asentinel representing the end of the view.
[edit]Example
| This section is incomplete Reason: no 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 | theconst overload might return a sentinel non-comparable to the iterator | constrained |
[edit]See also