From Jason Turner

[numeric.ops.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpmctxe8x_/{from.md → to.md} +12 -0
tmp/tmpmctxe8x_/{from.md → to.md} RENAMED
@@ -198,10 +198,22 @@ namespace std {
198
 
199
  // [numeric.iota], iota
200
  template<class ForwardIterator, class T>
201
  constexpr void iota(ForwardIterator first, ForwardIterator last, T value);
202
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  // [numeric.ops.gcd], greatest common divisor
204
  template<class M, class N>
205
  constexpr common_type_t<M, N> gcd(M m, N n);
206
 
207
  // [numeric.ops.lcm], least common multiple
 
198
 
199
  // [numeric.iota], iota
200
  template<class ForwardIterator, class T>
201
  constexpr void iota(ForwardIterator first, ForwardIterator last, T value);
202
 
203
+ namespace ranges {
204
+ template<class O, class T>
205
+ using iota_result = out_value_result<O, T>;
206
+
207
+ template<input_or_output_iterator O, sentinel_for<O> S, weakly_incrementable T>
208
+ requires indirectly_writable<O, const T&>
209
+ constexpr iota_result<O, T> iota(O first, S last, T value);
210
+
211
+ template<weakly_incrementable T, output_range<const T&> R>
212
+ constexpr iota_result<borrowed_iterator_t<R>, T> iota(R&& r, T value);
213
+ }
214
+
215
  // [numeric.ops.gcd], greatest common divisor
216
  template<class M, class N>
217
  constexpr common_type_t<M, N> gcd(M m, N n);
218
 
219
  // [numeric.ops.lcm], least common multiple