Skip to content

AmSharedPtr

template<class T, eMemoryPoolKind Pool = eMemoryPoolKind_Default> class AmSharedPtr : public std::shared_ptr<T>

Shared pointer type.

Template parameter T
The type of the pointer to allocate.
Template parameter Pool
The memory pool to allocate the pointer from.

Functions

Name Description
Make Construct a shared pointer from the given parameters.
AmSharedPtr Creates a new shared pointer.

Function Details

AmSharedPtr

AmSharedPtr(T* ptr)

Creates a new shared pointer.

Parameter ptr
The pointer to wrap.

Make

template<class... Args> static AmSharedPtr<T, Pool> Make(Args&&... args)

Construct a shared pointer from the given parameters.

Parameter args
The parameters to pass to the constructor.
Return
The created shared pointer.