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 215
215
template<class W, class Bound>
216
216
constexpr bool @\libspec{enable_borrowed_range}{iota_view}@<iota_view<W, Bound>> = true;
217
217
218
- namespace views { inline constexpr @\unspecnc@ iota = @\unspecnc@; }
218
+ namespace views {
219
+ inline constexpr @\unspecnc@ iota = @\unspecnc@;
220
+ inline constexpr @\unspecnc@ indices = @\unspecnc@;
221
+ }
219
222
220
223
// \ref{range.repeat}, repeat view
221
224
template<@\libconcept{move_constructible}@ T, @\libconcept{semiregular}@ Bound = unreachable_sentinel_t>
2784
2787
\end{codeblock}
2785
2788
\end{example}
2786
2789
2790
+ \pnum
2791
+ \indexlibrarymember{indices}{views}%
2792
+ The name \tcode{views::indices} denotes a
2793
+ customization point object\iref{customization.point.object}.
2794
+ Given subexpression \tcode{E},
2795
+ let \tcode{T} be \tcode{remove_cvref_t<decltype((E))>}.
2796
+ \tcode{views::indices(E)} is expression-equivalent to
2797
+ \tcode{views::iota(T(0), E)}
2798
+ if \tcode{\exposid{is-integer-like}<T>} is \tcode{true},
2799
+ and ill-formed otherwise.
2800
+
2787
2801
\rSec3[range.iota.view]{Class template \tcode{iota_view}}
2788
2802
2789
2803
\indexlibraryglobal{iota_view}%
Original file line number Diff line number Diff line change 775
775
#define @\defnlibxname {cpp_lib_ranges_find_last}@ 202207L // also in \libheader {algorithm}
776
776
#define @\defnlibxname {cpp_lib_ranges_fold}@ 202207L // also in \libheader {algorithm}
777
777
#define @\defnlibxname {cpp_lib_ranges_generate_random}@ 202403L // also in \libheader {random}
778
+ #define @\defnlibxname {cpp_lib_ranges_indices}@ 202506L // also in \libheader {ranges}
778
779
#define @\defnlibxname {cpp_lib_ranges_iota}@ 202202L // also in \libheader {numeric}
779
780
#define @\defnlibxname {cpp_lib_ranges_join_with}@ 202202L // freestanding, also in \libheader {ranges}
780
781
#define @\defnlibxname {cpp_lib_ranges_repeat}@ 202207L // freestanding, also in \libheader {ranges}
You can’t perform that action at this time.
0 commit comments