ArrayStore

Array storage.

@safe
struct ArrayStore (
T
Allocator = GCAllocator
Capacity = size_t
) if (
!is(immutable T == immutable bool) &&
(
is(Capacity == ulong) ||
is(Capacity == uint)
)
&&
isAllocator!Allocator
) {}

Constructors

this
this(T[] slice, Capacity length)
Undocumented in source.
this
this(T* ptr, Capacity capacityAndLength)
Undocumented in source.
this
this(T* ptr, Capacity capacity, Capacity length)
Undocumented in source.

Members

Functions

capacity
Capacity capacity()
Undocumented in source. Be warned that the author may not have intended to support it.
length
Capacity length()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(T)[] opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
inout(T)* ptr()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

isNoGc
enum isNoGc;
Undocumented in source.

Variables

_capacity
Capacity _capacity;
Undocumented in source.
_length
Capacity _length;
Undocumented in source.
_length
Capacity _length;
Undocumented in source.
_ptr
T* _ptr;
Undocumented in source.
_ptr
T* _ptr;
Undocumented in source.
_slice
T[] _slice;
Undocumented in source.
_slice
T[] _slice;
Undocumented in source.

Meta