4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::enable_shared_from_this< Type > Class Template Reference

Detailed Description

template<typename Type>
class fcppt::enable_shared_from_this< Type >

Allows an object to obtain a shared ptr to itself.

Derive from this class to allow an object to obtain a shared ptr to itself.

Inheritance diagram for fcppt::enable_shared_from_this< Type >:

Protected Member Functions

 enable_shared_from_this ()
 
 enable_shared_from_this (enable_shared_from_this const &)
 
 enable_shared_from_this (enable_shared_from_this &&) noexcept
 
enable_shared_from_thisoperator= (enable_shared_from_this const &)
 
enable_shared_from_thisoperator= (enable_shared_from_this &&) noexcept
 
 ~enable_shared_from_this ()
 
fcppt::shared_ptr< Type > fcppt_shared_from_this ()
 
fcppt::shared_ptr< Type const > fcppt_shared_from_this () const
 

Constructor & Destructor Documentation

◆ enable_shared_from_this() [1/3]

template<typename Type >
fcppt::enable_shared_from_this< Type >::enable_shared_from_this ( )
protected

◆ enable_shared_from_this() [2/3]

template<typename Type >
fcppt::enable_shared_from_this< Type >::enable_shared_from_this ( enable_shared_from_this< Type > const & )
protected

◆ enable_shared_from_this() [3/3]

template<typename Type >
fcppt::enable_shared_from_this< Type >::enable_shared_from_this ( enable_shared_from_this< Type > && )
protectednoexcept

◆ ~enable_shared_from_this()

template<typename Type >
fcppt::enable_shared_from_this< Type >::~enable_shared_from_this ( )
protected

Member Function Documentation

◆ fcppt_shared_from_this() [1/2]

template<typename Type >
fcppt::shared_ptr< Type > fcppt::enable_shared_from_this< Type >::fcppt_shared_from_this ( )
nodiscardprotected

◆ fcppt_shared_from_this() [2/2]

template<typename Type >
fcppt::shared_ptr< Type const > fcppt::enable_shared_from_this< Type >::fcppt_shared_from_this ( ) const
nodiscardprotected

◆ operator=() [1/2]

template<typename Type >
enable_shared_from_this & fcppt::enable_shared_from_this< Type >::operator= ( enable_shared_from_this< Type > && )
protectednoexcept

◆ operator=() [2/2]

template<typename Type >
enable_shared_from_this & fcppt::enable_shared_from_this< Type >::operator= ( enable_shared_from_this< Type > const & )
protected