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