ArrayRange

Alternative to std.range primitives for arrays.

The source is never consumed. The range always verifies isInputRange and isForwardRange. When the source array element type if not a character type or if the template parameter assumeDecoded is set to true then the range also verifies isForwardRange.

When the source is an array of character and if assumeDecoded is set to false (the default) then the ArrayRange front type is always dchar because of the UTF decoding. The parameter can be set to true if the source is known to contains only SBCs.

The template parameter infinite allows to turn the range in an infinite range that loops over the elements.

Constructors

this
this(T[] stuff)
this
this(T[] stuff)

Members

Functions

array
T[] array()

returns a slice of the source, according to front and back.

array
T[] array()

returns a slice of the source, according to front and back.

back
T back()
empty
bool empty()
empty
bool empty()
front
T front()
front
dchar front()
popBack
void popBack()
popFront
void popFront()
popFront
void popFront()
save
typeof(this) save()
save
typeof(this) save()

Meta