dmd.root.array

Dynamic array implementation.

Members

Enums

isCallableWith
eponymoustemplate isCallableWith(alias func, T)

Evaluates to true if func be called withl a value of T.

isInputRange
eponymoustemplate isInputRange(R)

Evaluates to true if the given type satisfy the input range interface.

isPredicateOf
eponymoustemplate isPredicateOf(alias func, T)

Evaluates to true if func can be called with a value of T and returns a value that is convertible to bool.

Functions

equal
bool equal(Range1 range1, Range2 range2)
filter
auto filter(Range range)

Lazily filters the given range based on the given predicate.

map
auto map(Range range)

Lazily iterates the given range and calls the given callable for each element.

reverse
T[] reverse(T[] a)

Reverse an array in-place.

split
void split(Array!T array, size_t index, size_t length)

Splits the array at index and expands it to make room for length elements by shifting everything past index to the right.

staticArray
T[n] staticArray(T[n] array)
walkLength
auto walkLength(Range range)

Properties

peekSlice
inout(T)[] peekSlice [@property getter]

Exposes the given root Array as a standard D array.

Structs

Array
struct Array(T)
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Templates

ElementType
template ElementType(R)

Evaluates to the element type of R.

each
template each(alias callable, T)

Iterates the given array and calls the given callable for each element.

each
template each(alias callable, T)

Iterates the given array and calls the given callable for each element.

Meta