constexpr auto begin() requires (!__SimpleView<V>);
constexpr auto begin() const requires ranges::range<const V> && std::indirect_unary_predicate<const Pred, ranges::iterator_t<const V>>;
Returns an iterator to the first element of the view. Effectively calls
ranges::begin on the underlying view.
Overload (1) does not participate in overload resolution if
V is a simple view (that is, if
const V are views with the same iterator and sentinel types).
base_ is the underlying view.
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 ||constrained|
| returns a sentinel representing the end
(public member function)
| compares a sentinel with an iterator returned from
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.