FastLED 3.9.7
Loading...
Searching...
No Matches
fl::scoped_ptr< T, Deleter > Class Template Reference

Detailed Description

template<typename T, typename Deleter = PointerDeleter<T>>
class fl::scoped_ptr< T, Deleter >

Definition at line 27 of file scoped_ptr.h.

Public Member Functions

 scoped_ptr (T *ptr=nullptr, Deleter deleter=Deleter())
 
 scoped_ptr (const scoped_ptr &)=delete
 
scoped_ptroperator= (const scoped_ptr &)=delete
 
 scoped_ptr (scoped_ptr &&other) noexcept
 
scoped_ptroperator= (scoped_ptr &&other) noexcept
 
T * operator-> () const
 
T & operator* () const
 
T * get () const
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
void reset (T *ptr=nullptr)
 
T * release ()
 

Constructor & Destructor Documentation

◆ scoped_ptr() [1/2]

template<typename T , typename Deleter = PointerDeleter<T>>
fl::scoped_ptr< T, Deleter >::scoped_ptr ( T * ptr = nullptr,
Deleter deleter = Deleter() )
inlineexplicit

Definition at line 30 of file scoped_ptr.h.

◆ ~scoped_ptr()

template<typename T , typename Deleter = PointerDeleter<T>>
fl::scoped_ptr< T, Deleter >::~scoped_ptr ( )
inline

Definition at line 34 of file scoped_ptr.h.

◆ scoped_ptr() [2/2]

template<typename T , typename Deleter = PointerDeleter<T>>
fl::scoped_ptr< T, Deleter >::scoped_ptr ( scoped_ptr< T, Deleter > && other)
inlinenoexcept

Definition at line 41 of file scoped_ptr.h.

Member Function Documentation

◆ get()

template<typename T , typename Deleter = PointerDeleter<T>>
T * fl::scoped_ptr< T, Deleter >::get ( ) const
inline

Definition at line 65 of file scoped_ptr.h.

◆ operator bool()

template<typename T , typename Deleter = PointerDeleter<T>>
fl::scoped_ptr< T, Deleter >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 68 of file scoped_ptr.h.

◆ operator!()

template<typename T , typename Deleter = PointerDeleter<T>>
bool fl::scoped_ptr< T, Deleter >::operator! ( ) const
inlinenoexcept

Definition at line 71 of file scoped_ptr.h.

◆ operator*()

template<typename T , typename Deleter = PointerDeleter<T>>
T & fl::scoped_ptr< T, Deleter >::operator* ( ) const
inline

Definition at line 62 of file scoped_ptr.h.

◆ operator->()

template<typename T , typename Deleter = PointerDeleter<T>>
T * fl::scoped_ptr< T, Deleter >::operator-> ( ) const
inline

Definition at line 59 of file scoped_ptr.h.

◆ operator=()

template<typename T , typename Deleter = PointerDeleter<T>>
scoped_ptr & fl::scoped_ptr< T, Deleter >::operator= ( scoped_ptr< T, Deleter > && other)
inlinenoexcept

Definition at line 48 of file scoped_ptr.h.

◆ release()

template<typename T , typename Deleter = PointerDeleter<T>>
T * fl::scoped_ptr< T, Deleter >::release ( )
inline

Definition at line 81 of file scoped_ptr.h.

◆ reset()

template<typename T , typename Deleter = PointerDeleter<T>>
void fl::scoped_ptr< T, Deleter >::reset ( T * ptr = nullptr)
inline

Definition at line 74 of file scoped_ptr.h.


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