1.5 KiB
1.5 KiB
[range.access.cbegin]
25 Ranges library [ranges]
25.3 Range access [range.access]
25.3.4 ranges::cbegin [range.access.cbegin]
The name ranges::cbegin denotes a customization point object ([customization.point.object]).
Given a subexpression E with type T, let t be an lvalue that denotes the reified object for E.
Then:
-
If E is an rvalue andenable_borrowed_range<remove_cv_t> is false,ranges::cbegin(E) is ill-formed.
-
Otherwise, let U be ranges::begin(possibly-const-range(t)). ranges::cbegin(E) is expression-equivalent toconst_iterator<decltype(U)>(U).
[Note 1:
Whenever ranges::cbegin(E) is a valid expression, its type modelsinput_or_output_iterator and constant-iterator.
â end note]