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

Detailed Description

template<typename T, typename Deleter = ArrayDeleter<T>>
class fl::scoped_array< T, Deleter >

Definition at line 92 of file scoped_ptr.h.

Public Member Functions

 scoped_array (T *arr=nullptr)
 
 scoped_array (T *arr, Deleter deleter)
 
 scoped_array (const scoped_array &)=delete
 
scoped_arrayoperator= (const scoped_array &)=delete
 
 scoped_array (scoped_array &&other) noexcept
 
scoped_arrayoperator= (scoped_array &&other) noexcept
 
T & operator[] (size_t i) const
 
T * get () const
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
void reset (T *arr=nullptr)
 
void clear ()
 
T * release ()
 

Constructor & Destructor Documentation

◆ scoped_array() [1/3]

template<typename T , typename Deleter = ArrayDeleter<T>>
fl::scoped_array< T, Deleter >::scoped_array ( T * arr = nullptr)
inlineexplicit

Definition at line 95 of file scoped_ptr.h.

◆ scoped_array() [2/3]

template<typename T , typename Deleter = ArrayDeleter<T>>
fl::scoped_array< T, Deleter >::scoped_array ( T * arr,
Deleter deleter )
inline

Definition at line 96 of file scoped_ptr.h.

◆ ~scoped_array()

template<typename T , typename Deleter = ArrayDeleter<T>>
fl::scoped_array< T, Deleter >::~scoped_array ( )
inline

Definition at line 99 of file scoped_ptr.h.

◆ scoped_array() [3/3]

template<typename T , typename Deleter = ArrayDeleter<T>>
fl::scoped_array< T, Deleter >::scoped_array ( scoped_array< T, Deleter > && other)
inlinenoexcept

Definition at line 106 of file scoped_ptr.h.

Member Function Documentation

◆ clear()

template<typename T , typename Deleter = ArrayDeleter<T>>
void fl::scoped_array< T, Deleter >::clear ( )
inline

Definition at line 141 of file scoped_ptr.h.

◆ get()

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

Definition at line 124 of file scoped_ptr.h.

◆ operator bool()

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

Definition at line 127 of file scoped_ptr.h.

◆ operator!()

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

Definition at line 130 of file scoped_ptr.h.

◆ operator=()

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

Definition at line 112 of file scoped_ptr.h.

◆ operator[]()

template<typename T , typename Deleter = ArrayDeleter<T>>
T & fl::scoped_array< T, Deleter >::operator[] ( size_t i) const
inline

Definition at line 121 of file scoped_ptr.h.

◆ release()

template<typename T , typename Deleter = ArrayDeleter<T>>
T * fl::scoped_array< T, Deleter >::release ( )
inline

Definition at line 145 of file scoped_ptr.h.

◆ reset()

template<typename T , typename Deleter = ArrayDeleter<T>>
void fl::scoped_array< T, Deleter >::reset ( T * arr = nullptr)
inline

Definition at line 133 of file scoped_ptr.h.


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