UniqueRange

Unique range (slice) owning its source of Source.

Copy construction is disabled, explicit copying is instead done through member .dup.

Constructors

this
this(Source source)

Construct from source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

E
alias E = ElementType!SourceRange
Undocumented in source.
SourceRange
alias SourceRange = typeof(Source.init[])
Undocumented in source.
stealBack
alias stealBack = takeBack
Undocumented in source.

Functions

empty
bool empty()

Is true if range is empty.

length
size_t length()
popBack
void popBack()

Pop back element.

popFront
void popFront()

Pop front element.

takeBack
E takeBack()

Pop back element and return it.

takeFront
E takeFront()

Pop front element and return it.

Properties

back
inout(E) back [@property getter]

Back element.

dup
typeof(this) dup [@property getter]
front
inout(E) front [@property getter]

Front element.

Meta