File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 218
218
template<class W, class Bound>
219
219
constexpr bool @\libspec{enable_borrowed_range}{iota_view}@<iota_view<W, Bound>> = true;
220
220
221
- namespace views { inline constexpr @\unspecnc@ iota = @\unspecnc@; }
221
+ namespace views {
222
+ inline constexpr @\unspecnc@ iota = @\unspecnc@;
223
+ inline constexpr @\unspecnc@ indices = @\unspecnc@;
224
+ }
222
225
223
226
// \ref{range.repeat}, repeat view
224
227
template<@\libconcept{move_constructible}@ T, @\libconcept{semiregular}@ Bound = unreachable_sentinel_t>
2802
2805
\end{codeblock}
2803
2806
\end{example}
2804
2807
2808
+ \pnum
2809
+ \indexlibrarymember{indices}{views}%
2810
+ The name \tcode{views::indices} denotes a
2811
+ customization point object\iref{customization.point.object}.
2812
+ Given subexpression \tcode{E},
2813
+ let \tcode{T} be \tcode{remove_cvref_t<decltype((E))>}.
2814
+ \tcode{views::indices(E)} is expression-equivalent to
2815
+ \tcode{views::iota(T(0), E)}
2816
+ if \tcode{\exposid{is-integer-like}<T>} is \tcode{true},
2817
+ and ill-formed otherwise.
2818
+
2805
2819
\rSec3[range.iota.view]{Class template \tcode{iota_view}}
2806
2820
2807
2821
\indexlibraryglobal{iota_view}%
Original file line number Diff line number Diff line change 794
794
#define @\defnlibxname {cpp_lib_ranges_find_last}@ 202207L // also in \libheader {algorithm}
795
795
#define @\defnlibxname {cpp_lib_ranges_fold}@ 202207L // also in \libheader {algorithm}
796
796
#define @\defnlibxname {cpp_lib_ranges_generate_random}@ 202403L // also in \libheader {random}
797
+ #define @\defnlibxname {cpp_lib_ranges_indices}@ 202506L // also in \libheader {ranges}
797
798
#define @\defnlibxname {cpp_lib_ranges_iota}@ 202202L // also in \libheader {numeric}
798
799
#define @\defnlibxname {cpp_lib_ranges_join_with}@ 202202L // freestanding, also in \libheader {ranges}
799
800
#define @\defnlibxname {cpp_lib_ranges_repeat}@ 202207L // freestanding, also in \libheader {ranges}
You can’t perform that action at this time.
0 commit comments