range overloads
Synopses
Declared in <folly/gen/Base.h>
Produces a half‐open sequence from begin to end.
template<
class Value,
class Impl = /* implementation-defined */,
class Gen = /* implementation-defined */>
Gen
range(
Value begin,
Value end);
Produces a half‐open sequence from begin to end by step.
template<
class Value,
class Distance,
class Impl = /* implementation-defined */,
class Gen = /* implementation-defined */>
Gen
range(
Value begin,
Value end,
Distance step);
Return Value
-
A source generator yielding the range.
-
A source generator yielding the stepped range.
Parameters
Name |
Description |
begin |
The first value of the sequence. |
end |
The exclusive upper bound of the sequence. |
step |
The increment between consecutive values. |
Created with MrDocs