Documentation Home

The shared_from_this member function returns a std::experimental::shared_ptr instance that owns this if there are already std::experimental::shared_ptr instances that own this. The new instance will share ownership with the existing ones.

Precondition:

There is at least one std::experimental::shared_ptr instance that owns this.

Returns:

A std::experimental::shared_ptr instance that holds this, and shares ownership with the existing std::experimental::shared_ptr instances that own this.

Throws:

Nothing.

Header

#include <experimental/atomic>

See Also