VectorAllocator

Vector backed by given allocator, it is not releaseing data after destruction, used in lua_json_token to treat dynamic arrays as a custom vector

Constructors

this
this(size_t numElements)
Undocumented in source.

Members

Aliases

allocator
alias allocator = Allocator.instance
Undocumented in source.

Functions

add
void add(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
add
void add(X[] t)
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
freeData
void freeData(void[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(X[] slice)
Undocumented in source. Be warned that the author may not have intended to support it.
opDollar
size_t opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
T opIndex(size_t elemNum)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(T obj, size_t elemNum)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(X[] obj)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
T[] opSlice(size_t x, size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(size_t elemNum)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
void removeAll()
Undocumented in source. Be warned that the author may not have intended to support it.
removeElement
void removeElement(T elem)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setLenght
void setLenght(size_t newNumOfElements)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

allocator
Allocator allocator;
Undocumented in source.
array
T[] array;
Undocumented in source.

Meta