Miosix  2.0alpha1
miosix::IntrusiveRefCountedSharedFromThis< T > Class Template Reference

#include <intrusive.h>

Public Member Functions

 IntrusiveRefCountedSharedFromThis ()
 
intrusive_ref_ptr< T > shared_from_this ()
 
intrusive_ref_ptr< const T > shared_from_this () const
 
virtual ~IntrusiveRefCountedSharedFromThis ()
 

Detailed Description

template<typename T>
class miosix::IntrusiveRefCountedSharedFromThis< T >

An implementation of 20.7.2.4 enable_shared_from_this for IntrusiveRefCounted

Parameters
Tthis class uses the CRTP, just like enable_shared_from_this, so if class Foo derives from IntrusiveRefCountedSharedFromThis, T has to be Foo.

Constructor & Destructor Documentation

Constructor

Destructor

Member Function Documentation

template<typename T>
intrusive_ref_ptr<T> miosix::IntrusiveRefCountedSharedFromThis< T >::shared_from_this ( )
inline
Returns
an intrusive_ref_ptr to this. In this respect, IntrusiveRefCounted also behaves like enable_shared_from_this
template<typename T>
intrusive_ref_ptr<const T> miosix::IntrusiveRefCountedSharedFromThis< T >::shared_from_this ( ) const
inline
Returns
an intrusive_ref_ptr to this In this respect, IntrusiveRefCounted also behaves like enable_shared_from_this

The documentation for this class was generated from the following file: