LiteFX::makeShared¶
Creates a new shared pointer.
Synopsis¶
Declared in <litefx/containers.hpp>
template<
class T,
class... TArgs>
[[nodiscard]] constexpr SharedPtr<T> makeShared(TArgs&&... _args);
Return Value¶
A new shared pointer.
Note
The return value should not be discarded.
Template Parameters¶
| Name | Description |
|---|---|
| T | The type of the object, the pointer points to. |