Generic allocator interfaces that can be injected into routines that need dynamic memory.
These include Allocator, as well as the Layout type that is passed to it and the managed smart pointer types, such as UniquePtr, that can be returned from it.
◆ const_pointer_cast()
template<typename To , typename From >
Creates a new SharedPtr by const casting the given shared pointer.
For an arbitrary type A, a shared pointer to A can be automatically converted to one of type const A. This function can perform the reverse operation.
Definition: shared_ptr.h:76
◆ Lock()
Creates a new SharedPtr to the associated object, or an empty SharedPtr if this object is empty.
◆ reset()
Resets this object to an empty state.
If this is the last shared or weak pointer associated with the control block, it is deallocated.
◆ static_pointer_cast()
template<typename To , typename From >
Creates a new SharedPtr by static casting the given shared pointer.
If an arbitrary type A derives from another type B, a shared pointer to A can be automatically upcast to one of type B. This function can perform the reverse operation and allows specifying only the element type.