Vector

copy 有三种类型: 1. COW: 对于值类型, 非指针, 对于结构体并且没有自定义 赋值函数 2. 深Copy: 对于有自定义 赋值函数的结构体 2. 不允许copy: 对于引用类型 和 指针

Constructors

this
this(size_t size)
Undocumented in source.
this
this(S[] data)
Undocumented in source.
this
this()
Undocumented in source.
this
this(size_t size, Allocator alloc)
Undocumented in source.
this
this(S[] data, Allocator alloc)
Undocumented in source.
this
this(Allocator alloc)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

Data
alias Data = ArrayCOWData!(T, Allocator, addToGC)
Undocumented in source.
DestroyFun
alias DestroyFun = void function(ref Alloc alloc, ref T) nothrow
Undocumented in source.
InsertT
alias InsertT = T
Undocumented in source.
InsertT
alias InsertT = T
Undocumented in source.
insertBack
alias insertBack = append
Undocumented in source.
pushBack
alias pushBack = append
Undocumented in source.
put
alias put = append
Undocumented in source.
removeIndex
alias removeIndex = removeSite
Undocumented in source.

Functions

append
void append(S value)
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.
data
immutable(T)[] data()
Undocumented in source. Be warned that the author may not have intended to support it.
idup
T[] idup()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref T) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(size_t, ref T) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(S n)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
typeof(this) opBinary(S other)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
immutable(T)[] opCast()
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.
opEquals
bool opEquals(S other)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
auto opIndex(size_t index)
Undocumented in source.
opIndex
auto opIndex(size_t index)
Undocumented in source.
opIndexAssign
void opIndexAssign(S value, size_t index)
Undocumented in source.
opOpAssign
void opOpAssign(S other)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAny
size_t removeAny(S value)
Undocumented in source. Be warned that the author may not have intended to support it.
removeBack
size_t removeBack(size_t howMany)
Undocumented in source. Be warned that the author may not have intended to support it.
removeOne
bool removeOne(S value)
Undocumented in source. Be warned that the author may not have intended to support it.
removeSite
void removeSite(size_t site)
Undocumented in source.
reserve
void reserve(size_t elements)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

addToGC
enum addToGC;
Undocumented in source.
isNotCopy
enum isNotCopy;
Undocumented in source.
needDestroy
enum needDestroy;
Undocumented in source.

Mixins

__anonymous
mixin AllocDefine!Allocator
Undocumented in source.

Properties

destroyFun
DestroyFun destroyFun [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
destroyFun
DestroyFun destroyFun [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dup
typeof(this) dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
const(T)* ptr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta