tanya.memory.lifetime

Lifetime management functions, types and related exceptions.

Members

Functions

destroyAllImpl
void destroyAllImpl(R p)
Undocumented in source. Be warned that the author may not have intended to support it.
emplace
T emplace(void[] memory, U outer, Args args)
T emplace(void[] memory, Args args)
T* emplace(void[] memory, Args args)

Constructs a new object of type T in memory with the given arguments.

move
void move(T source, T target)
T move(T source)

Moves source into target assuming that target isn't initialized.

moveEmplace
void moveEmplace(T source, T target)

Moves source into target assuming that target isn't initialized.

swap
void swap(T a, T b)

Exchanges the values of a and b.

Templates

forward
template forward(args...)

Forwards its argument list preserving $(D_KEYWORD ref) and $(D_KEYWORD out) storage classes.

Meta