unstd.memory.weakref

Weak reference implementation.

Members

Classes

WeakReference
class WeakReference(T)

Implements weak reference.

WeakReferenceArray
class WeakReferenceArray(T)

Implements weak reference array.

Enums

isWeakReferenceable
eponymoustemplate isWeakReferenceable(T)

Detect whether a weak reference to type T can be created.

Functions

weakReference
WeakReference!T weakReference(T target)

Convenience function that returns a WeakReference!T object for target.

weakReferenceArray
WeakReferenceArray!T weakReferenceArray(size_t initialCapacity)

Convenience function that returns a WeakReferenceArray!T with initial capacity initialCapacity.

Meta

Authors

Denis Shelomovskij