Skip to content

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();

» more...

[[nodiscard]] shared_ptr<SharedObject const> shared_from_this() const;

» more...

Returns a shared pointer to the current object instance.

template<typename TSelf>
[[nodiscard]] auto shared_from_this(this TSelf&& self);

» more...

Return Value

Note

The return value should not be discarded.