Embedded Template Library 1.0
Loading...
Searching...
No Matches

Classes

struct  etl::default_delete< T >
 
struct  etl::default_delete< T[]>
 
class  etl::unique_ptr< T, TDeleter >
 
class  etl::unique_ptr< T[], TDeleter >
 

Functions

template<typename TOutputIterator , typename T >
TOutputIterator etl::uninitialized_fill (TOutputIterator o_begin, TOutputIterator o_end, const T &value)
 
template<typename TOutputIterator , typename T , typename TCounter >
TOutputIterator etl::uninitialized_fill (TOutputIterator o_begin, TOutputIterator o_end, const T &value, TCounter &count)
 
template<typename TOutputIterator , typename TSize , typename T >
TOutputIterator etl::uninitialized_fill_n (TOutputIterator o_begin, TSize n, const T &value)
 
template<typename TOutputIterator , typename TSize , typename T , typename TCounter >
TOutputIterator etl::uninitialized_fill_n (TOutputIterator o_begin, TSize n, const T &value, TCounter &count)
 
template<typename TInputIterator , typename TOutputIterator >
TOutputIterator etl::uninitialized_copy (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin)
 
template<typename TInputIterator , typename TOutputIterator , typename TCounter >
TOutputIterator etl::uninitialized_copy (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin, TCounter &count)
 
template<typename TInputIterator , typename TSize , typename TOutputIterator >
TOutputIterator etl::uninitialized_copy_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin)
 
template<typename TInputIterator , typename TSize , typename TOutputIterator , typename TCounter >
TOutputIterator etl::uninitialized_copy_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin, TCounter &count)
 
template<typename TInputIterator , typename TOutputIterator >
TOutputIterator etl::uninitialized_move (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin)
 
template<typename TInputIterator , typename TOutputIterator , typename TCounter >
TOutputIterator etl::uninitialized_move (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin, TCounter &count)
 
template<typename TInputIterator , typename TSize , typename TOutputIterator >
TOutputIterator etl::uninitialized_move_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin)
 
template<typename TInputIterator , typename TSize , typename TOutputIterator , typename TCounter >
TOutputIterator etl::uninitialized_move_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin, TCounter &count)
 
template<typename TOutputIterator >
etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_default_construct (TOutputIterator, TOutputIterator)
 
template<typename TOutputIterator , typename TCounter >
etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_default_construct (TOutputIterator o_begin, TOutputIterator o_end, TCounter &count)
 
template<typename TOutputIterator , typename TSize >
etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type etl::uninitialized_default_construct_n (TOutputIterator o_begin, TSize n)
 
template<typename TOutputIterator , typename TSize , typename TCounter >
etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type etl::uninitialized_default_construct_n (TOutputIterator o_begin, TSize n, TCounter &count)
 
template<typename TOutputIterator >
etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_value_construct (TOutputIterator o_begin, TOutputIterator o_end)
 
template<typename TOutputIterator , typename TCounter >
void etl::uninitialized_value_construct (TOutputIterator o_begin, TOutputIterator o_end, TCounter &count)
 
template<typename TOutputIterator , typename TSize >
TOutputIterator etl::uninitialized_value_construct_n (TOutputIterator o_begin, TSize n)
 
template<typename TOutputIterator , typename TSize , typename TCounter >
TOutputIterator etl::uninitialized_value_construct_n (TOutputIterator o_begin, TSize n, TCounter &count)
 
template<typename T >
Tetl::construct_at (T *p)
 
template<typename T , typename TArg >
Tetl::construct_at (T *p, const TArg &arg)
 
template<typename T >
etl::enable_if< etl::is_trivially_destructible< T >::value, void >::type etl::destroy_at (T *)
 
template<typename T , typename TCounter >
etl::enable_if< etl::is_trivially_destructible< T >::value, void >::type etl::destroy_at (T *, TCounter &count)
 
template<typename TIterator >
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, void >::type etl::destroy (TIterator, TIterator)
 
template<typename TIterator , typename TCounter >
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, void >::type etl::destroy (TIterator i_begin, TIterator i_end, TCounter &count)
 
template<typename TIterator , typename TSize >
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, TIterator >::type etl::destroy_n (TIterator i_begin, TSize n)
 
template<typename TIterator , typename TSize , typename TCounter >
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, TIterator >::type etl::destroy_n (TIterator i_begin, TSize n, TCounter &count)
 
template<typename T >
ETL_CONSTEXPR17 etl::enable_if<!etl::is_same< T, etl::nullptr_t >::value, T >::type * etl::addressof (T &t)
 

Detailed Description


Class Documentation

◆ etl::default_delete

struct etl::default_delete
template<typename T>
struct etl::default_delete< T >

Default deleter.

Template Parameters
TThe pointed to type type. https://en.cppreference.com/w/cpp/memory/default_delete

Public Member Functions

template<typename U >
 default_delete (const default_delete< U > &) ETL_NOEXCEPT
 
void operator() (T *p) const ETL_NOEXCEPT
 

◆ etl::default_delete< T[]>

struct etl::default_delete< T[]>
template<typename T>
struct etl::default_delete< T[]>

Default deleter for arrays.

Template Parameters
TThe pointed to type type. https://en.cppreference.com/w/cpp/memory/default_delete

Public Member Functions

template<typename U >
 default_delete (const default_delete< U > &) ETL_NOEXCEPT
 
template<class U >
void operator() (U *p) const
 

◆ etl::unique_ptr

class etl::unique_ptr
template<typename T, typename TDeleter = etl::default_delete<T>>
class etl::unique_ptr< T, TDeleter >

Unique pointer.

Template Parameters
TThe pointed to type type. https://en.cppreference.com/w/cpp/memory/unique_ptr

Public Types

typedef T element_type
 
typedef Tpointer
 
typedef Treference
 

Public Member Functions

ETL_CONSTEXPR unique_ptr (pointer p_) ETL_NOEXCEPT
 
 unique_ptr (unique_ptr &other) ETL_NOEXCEPT
 
 unique_ptr (pointer p_, typename etl::conditional< etl::is_reference< TDeleter >::value, TDeleter, typename etl::add_lvalue_reference< const TDeleter >::type >::type deleter_) ETL_NOEXCEPT
 
ETL_CONSTEXPR pointer get () const ETL_NOEXCEPT
 
TDeleterget_deleter () ETL_NOEXCEPT
 
const TDeleterget_deleter () const ETL_NOEXCEPT
 
pointer release () ETL_NOEXCEPT
 
void reset (pointer p_=pointer()) ETL_NOEXCEPT
 
void swap (unique_ptr &value) ETL_NOEXCEPT
 
ETL_CONSTEXPR operator bool () const ETL_NOEXCEPT
 
unique_ptroperator= (etl::nullptr_t) ETL_NOEXCEPT
 
unique_ptroperator= (unique_ptr &other) ETL_NOEXCEPT
 
ETL_CONSTEXPR reference operator* () const
 
ETL_CONSTEXPR pointer operator-> () const ETL_NOEXCEPT
 
ETL_CONSTEXPR reference operator[] (size_t i) const
 

◆ etl::unique_ptr< T[], TDeleter >

class etl::unique_ptr< T[], TDeleter >
template<typename T, typename TDeleter>
class etl::unique_ptr< T[], TDeleter >

Unique pointer for arrays.

Template Parameters
TThe pointed to type type. https://en.cppreference.com/w/cpp/memory/unique_ptr

Public Types

typedef T element_type
 
typedef Tpointer
 
typedef Treference
 

Public Member Functions

ETL_CONSTEXPR unique_ptr (pointer p_) ETL_NOEXCEPT
 
 unique_ptr (unique_ptr &other) ETL_NOEXCEPT
 
 unique_ptr (pointer p_, typename etl::conditional< etl::is_reference< TDeleter >::value, TDeleter, typename etl::add_lvalue_reference< const TDeleter >::type >::type deleter_) ETL_NOEXCEPT
 
ETL_CONSTEXPR pointer get () const ETL_NOEXCEPT
 
TDeleterget_deleter () ETL_NOEXCEPT
 
const TDeleterget_deleter () const ETL_NOEXCEPT
 
pointer release () ETL_NOEXCEPT
 
void reset (pointer p_) ETL_NOEXCEPT
 
void reset (etl::nullptr_t=ETL_NULLPTR) ETL_NOEXCEPT
 
void swap (unique_ptr &v) ETL_NOEXCEPT
 
ETL_CONSTEXPR operator bool () const ETL_NOEXCEPT
 
unique_ptroperator= (etl::nullptr_t) ETL_NOEXCEPT
 
unique_ptroperator= (unique_ptr &other) ETL_NOEXCEPT
 
ETL_CONSTEXPR reference operator* () const
 
ETL_CONSTEXPR pointer operator-> () const ETL_NOEXCEPT
 
ETL_CONSTEXPR reference operator[] (size_t i) const
 

Function Documentation

◆ addressof()

template<typename T >
ETL_CONSTEXPR17 etl::enable_if<!etl::is_same< T, etl::nullptr_t >::value, T >::type * etl::addressof ( T t)

◆ construct_at() [1/2]

template<typename T >
T * etl::construct_at ( T p)

◆ construct_at() [2/2]

template<typename T , typename TArg >
T * etl::construct_at ( T p,
const TArg arg 
)

Constructs an item at address p with value 'arg'. https://en.cppreference.com/w/cpp/memory/construct_at

◆ destroy() [1/2]

etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, void >::type etl::destroy ( TIterator  i_begin,
TIterator  i_end,
TCounter count 
)

Destroys a range of items. Debug counter version. https://en.cppreference.com/w/cpp/memory/destroy

◆ destroy() [2/2]

template<typename TIterator >
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, void >::type etl::destroy ( TIterator  ,
TIterator   
)

◆ destroy_at() [1/2]

template<typename T >
etl::enable_if< etl::is_trivially_destructible< T >::value, void >::type etl::destroy_at ( T )

◆ destroy_at() [2/2]

template<typename T , typename TCounter >
etl::enable_if< etl::is_trivially_destructible< T >::value, void >::type etl::destroy_at ( T ,
TCounter count 
)

Destroys an item at address p. Debug counter version. https://en.cppreference.com/w/cpp/memory/destroy_at

◆ destroy_n() [1/2]

etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, TIterator >::type etl::destroy_n ( TIterator  i_begin,
TSize  n 
)

◆ destroy_n() [2/2]

etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, TIterator >::type etl::destroy_n ( TIterator  i_begin,
TSize  n,
TCounter count 
)

Destroys a number of items. Debug counter version. https://en.cppreference.com/w/cpp/memory/destroy_n

◆ uninitialized_copy() [1/2]

TOutputIterator etl::uninitialized_copy ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin 
)

Copies a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_copy

◆ uninitialized_copy() [2/2]

TOutputIterator etl::uninitialized_copy ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin,
TCounter count 
)

Copies a range of objects to uninitialised memory. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_copy

◆ uninitialized_copy_n() [1/2]

TOutputIterator etl::uninitialized_copy_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin 
)

Copies N objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_copy_n

◆ uninitialized_copy_n() [2/2]

TOutputIterator etl::uninitialized_copy_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin,
TCounter count 
)

Copies N objects to uninitialised memory. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_copy_n

◆ uninitialized_default_construct() [1/2]

etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_default_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end,
TCounter count 
)

Default initialises a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_default_construct Debug counter version.

◆ uninitialized_default_construct() [2/2]

etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_default_construct ( TOutputIterator  ,
TOutputIterator   
)

Default initialises a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_default_construct

◆ uninitialized_default_construct_n() [1/2]

etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type etl::uninitialized_default_construct_n ( TOutputIterator  o_begin,
TSize  n 
)

Default initialises N objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_default_construct_n

◆ uninitialized_default_construct_n() [2/2]

etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type etl::uninitialized_default_construct_n ( TOutputIterator  o_begin,
TSize  n,
TCounter count 
)

Default initialises N objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_default_construct_n Debug counter version.

◆ uninitialized_fill() [1/2]

TOutputIterator etl::uninitialized_fill ( TOutputIterator  o_begin,
TOutputIterator  o_end,
const T value 
)

Fills uninitialised memory range with a value. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_fill

◆ uninitialized_fill() [2/2]

TOutputIterator etl::uninitialized_fill ( TOutputIterator  o_begin,
TOutputIterator  o_end,
const T value,
TCounter count 
)

Fills uninitialised memory range with a value. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_fill

◆ uninitialized_fill_n() [1/2]

TOutputIterator etl::uninitialized_fill_n ( TOutputIterator  o_begin,
TSize  n,
const T value 
)

Fills uninitialised memory with N values. https://en.cppreference.com/w/cpp/memory/uninitialized_fill_n

◆ uninitialized_fill_n() [2/2]

TOutputIterator etl::uninitialized_fill_n ( TOutputIterator  o_begin,
TSize  n,
const T value,
TCounter count 
)

Fills uninitialised memory with N values. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_fill_n

◆ uninitialized_move() [1/2]

TOutputIterator etl::uninitialized_move ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin 
)

Moves a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_move

◆ uninitialized_move() [2/2]

TOutputIterator etl::uninitialized_move ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin,
TCounter count 
)

Moves a range of objects to uninitialised memory. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_move

◆ uninitialized_move_n() [1/2]

TOutputIterator etl::uninitialized_move_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin 
)

Moves a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_move_n

◆ uninitialized_move_n() [2/2]

TOutputIterator etl::uninitialized_move_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin,
TCounter count 
)

Moves a range of objects to uninitialised memory. Debug counter version. https://en.cppreference.com/w/cpp/memory/uninitialized_move

◆ uninitialized_value_construct() [1/2]

etl::enable_if< etl::is_trivially_constructible< typenameetl::iterator_traits< TOutputIterator >::value_type >::value, void >::type etl::uninitialized_value_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end 
)

Default initialises a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_value_construct

◆ uninitialized_value_construct() [2/2]

void etl::uninitialized_value_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end,
TCounter count 
)

Default initialises a range of objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_value_construct Debug counter version.

◆ uninitialized_value_construct_n() [1/2]

TOutputIterator etl::uninitialized_value_construct_n ( TOutputIterator  o_begin,
TSize  n 
)

Default initialises N objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_value_construct_n

◆ uninitialized_value_construct_n() [2/2]

TOutputIterator etl::uninitialized_value_construct_n ( TOutputIterator  o_begin,
TSize  n,
TCounter count 
)

Default initialises N objects to uninitialised memory. https://en.cppreference.com/w/cpp/memory/uninitialized_value_construct_n Debug counter version.