LiteFX::SharedObject::shared_from_this¶
Returns a shared pointer to the current object instance.
Synopsis¶
Declared in <litefx/containers.hpp>
template<typename TSelf>
[[nodiscard]] auto shared_from_this(this TSelf&& self);
Return Value¶
a shared pointer to the current object instance.
Note
The return value should not be discarded.