SoA

Structure of Arrays similar to members of S.

Constructors

this
this(Capacity initialCapacity, Allocator allocator)
Undocumented in source.
this
this()
Undocumented in source.
this
this(Capacity initialCapacity)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

capacity
Capacity capacity()
Undocumented in source.
empty
bool empty()
Undocumented in source.
insertBack
void insertBack(S value)

Push element (struct) value to back of array.

insertBackMembers
void insertBackMembers(Types members)

Push element value to back of array using its data members members.

length
Capacity length()
Undocumented in source.
opDispatch
auto opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(SoAElementRef!S) opIndex(Capacity elementIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(S value)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(SoASlice!S) opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

_growthP
enum _growthP;
_growthQ
enum _growthQ;

Growth factor P/Q. https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md#memory-handling

Use 1.5 like Facebook's fbvector does.

Meta