Embedded Template Library 1.0
|
Classes | |
struct | etl::default_delete< T > |
struct | etl::default_delete< T[]> |
class | etl::unique_ptr< T, TDeleter > |
class | etl::unique_ptr< T[], TDeleter > |
struct | etl::create_copy< T > |
struct | etl::wipe_on_destruct< T > |
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 > | |
T * | etl::construct_at (T *p) |
template<typename T , typename TArg > | |
T * | etl::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::enable_if< etl::is_trivially_constructible< T >::value, void >::type | etl::create_default_at (T *) |
template<typename T , typename TCounter > | |
etl::enable_if< etl::is_trivially_constructible< T >::value, void >::type | etl::create_default_at (T *, TCounter &count) |
template<typename T > | |
void | etl::create_value_at (T *p) |
template<typename T , typename TCounter > | |
void | etl::create_value_at (T *p, TCounter &count) |
template<typename T > | |
void | etl::create_copy_at (T *p, const T &value) |
template<typename T , typename TCounter > | |
void | etl::create_copy_at (T *p, const T &value, TCounter &count) |
template<typename T > | |
T & | etl::make_default_at (T *p) |
template<typename T , typename TCounter > | |
T & | etl::make_default_at (T *p, TCounter &count) |
template<typename T > | |
T & | etl::make_copy_at (T *p, const T &other) |
template<typename T , typename TCounter > | |
T & | etl::make_copy_at (T *p, const T &other, TCounter &count) |
template<typename T , typename TParameter > | |
T & | etl::make_value_at (T *p, const TParameter &value) |
template<typename T , typename TParameter , typename TCounter > | |
T & | etl::make_value_at (T *p, const TParameter &value, TCounter &count) |
void | etl::memory_clear (volatile char *p, size_t n) |
template<typename T > | |
void | etl::memory_clear (volatile T &object) |
template<typename T > | |
void | etl::memory_clear_range (volatile T *begin, size_t n) |
template<typename T > | |
void | etl::memory_clear_range (volatile T *begin, volatile T *end) |
void | etl::memory_set (volatile char *p, size_t n, char value) |
template<typename T > | |
void | etl::memory_set (volatile T &object, const char value) |
template<typename T > | |
void | etl::memory_set_range (volatile T *begin, size_t n, const char value) |
template<typename T > | |
void | etl::memory_set_range (volatile T *begin, volatile T *end, const char value) |
template<typename T > | |
ETL_CONSTEXPR17 T * | etl::addressof (T &t) |
struct etl::default_delete |
Default deleter.
T | The 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 |
struct etl::default_delete< T[]> |
Default deleter for arrays.
T | The 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 |
class etl::unique_ptr |
Unique pointer.
T | The pointed to type type. https://en.cppreference.com/w/cpp/memory/unique_ptr |
Public Types | |
typedef T | element_type |
typedef T * | pointer |
typedef T & | reference |
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 |
TDeleter & | get_deleter () ETL_NOEXCEPT |
const TDeleter & | get_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_ptr & | operator= (void *) ETL_NOEXCEPT |
unique_ptr & | operator= (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 |
class etl::unique_ptr< T[], TDeleter > |
Unique pointer for arrays.
T | The pointed to type type. https://en.cppreference.com/w/cpp/memory/unique_ptr |
Public Types | |
typedef T | element_type |
typedef T * | pointer |
typedef T & | reference |
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 |
TDeleter & | get_deleter () ETL_NOEXCEPT |
const TDeleter & | get_deleter () const ETL_NOEXCEPT |
pointer | release () ETL_NOEXCEPT |
void | reset (pointer p_) ETL_NOEXCEPT |
void | swap (unique_ptr &v) ETL_NOEXCEPT |
ETL_CONSTEXPR | operator bool () const ETL_NOEXCEPT |
unique_ptr & | operator= (void *) ETL_NOEXCEPT |
unique_ptr & | operator= (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 |
struct etl::create_copy |
Copy constructs a derived class to an address.
T | The derived type. |
struct etl::wipe_on_destruct |
Base class for objects that require their memory to be wiped after use. Erases the object's memory to zero. Note: This may not work for multiply inherited objects.
T | The derived type. |
ETL_CONSTEXPR17 T * etl::addressof | ( | T & | t | ) |
Gets the address of an object. https://en.cppreference.com/w/cpp/memory/addressof
T * etl::construct_at | ( | T * | p | ) |
Constructs an item at address p. https://en.cppreference.com/w/cpp/memory/construct_at
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
void etl::create_copy_at | ( | T * | p, |
const T & | value | ||
) |
Copy construct an item at address p.
void etl::create_copy_at | ( | T * | p, |
const T & | value, | ||
TCounter & | count | ||
) |
Copy construct an item at address p.
etl::enable_if< etl::is_trivially_constructible< T >::value, void >::type etl::create_default_at | ( | T * | ) |
Default construct an item at address p.
etl::enable_if< etl::is_trivially_constructible< T >::value, void >::type etl::create_default_at | ( | T * | , |
TCounter & | count | ||
) |
Default construct an item at address p.
void etl::create_value_at | ( | T * | p | ) |
Value construct an item at address p.
void etl::create_value_at | ( | T * | p, |
TCounter & | count | ||
) |
Value construct an item at address p.
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
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, void >::type etl::destroy | ( | TIterator | , |
TIterator | |||
) |
Destroys a range of items. https://en.cppreference.com/w/cpp/memory/destroy
etl::enable_if< etl::is_trivially_destructible< T >::value, void >::type etl::destroy_at | ( | T * | ) |
Destroys an item at address p. https://en.cppreference.com/w/cpp/memory/destroy_at
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
etl::enable_if< etl::is_trivially_destructible< typenameetl::iterator_traits< TIterator >::value_type >::value, TIterator >::type etl::destroy_n | ( | TIterator | i_begin, |
TSize | n | ||
) |
Destroys a number of items. https://en.cppreference.com/w/cpp/memory/destroy_n
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
T & etl::make_copy_at | ( | T * | p, |
const T & | other | ||
) |
Construct an item at address p.
T & etl::make_copy_at | ( | T * | p, |
const T & | other, | ||
TCounter & | count | ||
) |
Construct an item at address p.
T & etl::make_default_at | ( | T * | p | ) |
Construct an item at address p.
T & etl::make_default_at | ( | T * | p, |
TCounter & | count | ||
) |
Construct an item at address p.
T & etl::make_value_at | ( | T * | p, |
const TParameter & | value | ||
) |
Construct an item at address p.
T & etl::make_value_at | ( | T * | p, |
const TParameter & | value, | ||
TCounter & | count | ||
) |
Construct an item at address p.
|
inline |
A low level function that clears an object's memory to zero.
p | Pointer to the memory. |
n | Size of the memory. |
void etl::memory_clear | ( | volatile T & | object | ) |
A low level function that clears an object's memory to zero.
T | The type. |
object | The object to clear. |
void etl::memory_clear_range | ( | volatile T * | begin, |
size_t | n | ||
) |
A low level function that clears a range to zero.
T | The type. |
begin | The first object in the range. |
n | The number of objects. |
void etl::memory_clear_range | ( | volatile T * | begin, |
volatile T * | end | ||
) |
A low level function that clears a range to zero.
T | The type. |
begin | The first object in the range. |
end | One past the last object in the range. |
|
inline |
A low level function that clears an object's memory to zero.
p | Pointer to the memory. |
n | Size of the memory. |
value | The value to set. |
void etl::memory_set | ( | volatile T & | object, |
const char | value | ||
) |
A low level function that sets an object's memory to a value.
T | The type. |
object | The object to set. |
value | The value to set the object's memory to. |
void etl::memory_set_range | ( | volatile T * | begin, |
size_t | n, | ||
const char | value | ||
) |
A low level function that clears a range to zero.
T | The type. |
begin | The first object in the range. |
n | The number of objects. |
value | The value to set the object's memory to. |
void etl::memory_set_range | ( | volatile T * | begin, |
volatile T * | end, | ||
const char | value | ||
) |
A low level function that clears a range to zero.
T | The type. |
begin | The first object in the range. |
end | One past the last object in the range. |
value | The value to set the object's memory to. |
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
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
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
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
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.
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
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
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.
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
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
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
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
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
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
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
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
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
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.
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
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.