Module btl.autoptr.shared_ptr

Implementation of reference counted pointer SharedPtr (similar to c++ std::shared_ptr).

Functions

NameDescription
dynCast() Dynamic cast for shared pointers if ElementType is class with D linkage.
dynCastMove() Dynamic cast for shared pointers if ElementType is class with D linkage.
first(ptr) Return SharedPtr pointing to first element of array managed by shared pointer ptr.
share(ptr) Return shared SharedPtr pointing to same managed object like parameter ptr.
sharedPtr(ptr) Create SharedPtr from parameter ptr of type SharedPtr, RcPtr or IntrusivePtr.

Structs

NameDescription
SharedPtr Implementation of a ref counted pointer with support for aliasing.

Manifest constants

NameTypeDescription
isSharedPtr Check if type T is SharedPtr.

Aliases

NameTypeDescription
SharedPtr SharedPtr!(_Type,_DestructorType,_ControlType,_weakPtr) Alias to SharedPtr with different order of template parameters
WeakPtr SharedPtr!(_Type,_DestructorType,_ControlType,true) Weak pointer.