RaiiArray

Dynamic array using malloc, realloc and free under the hood. Note that memory will be released on scope exit.

Constructors

this
this(size_t capacity)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

length
alias length = capacity
Undocumented in source.

Mixins

__anonymous
mixin Slicing
Undocumented in source.
__anonymous
mixin CapacityTools
Undocumented in source.

Properties

capacity
size_t capacity [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
capacity
size_t capacity [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
inout(T)* ptr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Mixed In Members

From mixin Slicing

opIndex
inout(T) opIndex(size_t idx)
Undocumented in source.
opSlice
inout(T)[] opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(T)[] opSlice(size_t a, size_t b)
Undocumented in source.

From mixin CapacityTools

capacityNeeded
void capacityNeeded(size_t c)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta