Module btl.autoptr.rc_ptr

Implementation of non aliasable reference counted pointer RcPtr (similar to c++ std::shared_ptr without aliasing).

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 RcPtr pointing to first element of dynamic array managed by rc pointer ptr.
share(ptr) Return shared RcPtr pointing to same managed object like parameter ptr.

Structs

NameDescription
RcPtr Implementation of a ref counted pointer without support for aliasing (smaller size of pointer).

Manifest constants

NameTypeDescription
isRcPtr Check if type T is RcPtr.

Aliases

NameTypeDescription
RcPtr RcPtr!(_Type,_DestructorType,_ControlType,false) Alias to RcPtr with different order of template parameters