tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
dynamic_array< T, Allocator > Struct Template Reference

#include <etl/array.hpp>

Public Types

using allocator_type = Allocator
 
using const_pointer = T const*
 
using difference_type = etl::ptrdiff_t
 
using pointer = T*
 
using size_type = etl::size_t
 
using value_type = T
 

Public Member Functions

 dynamic_array ()=default
 
 dynamic_array (Allocator alloc)
 
 dynamic_array (dynamic_array &&other) noexcept
 
 dynamic_array (dynamic_array const &other)=delete
 
 dynamic_array (etl::size_t n, Allocator alloc=Allocator())
 
 dynamic_array (etl::size_t n, T const &value, Allocator alloc=Allocator())
 
 ~dynamic_array ()
 
auto begin () -> T *
 
auto begin () const -> T const *
 
auto data () -> T *
 
auto data () const -> T const *
 
auto end () -> T *
 
auto end () const -> T const *
 
auto operator= (dynamic_array &&other) noexcept -> dynamic_array &
 
auto operator= (dynamic_array const &other) -> dynamic_array &=delete
 
auto size () -> etl::size_t
 
auto size () const -> etl::size_t
 

Member Typedef Documentation

◆ allocator_type

template<typename T, typename Allocator>
using allocator_type = Allocator

◆ const_pointer

template<typename T, typename Allocator>
using const_pointer = T const*

◆ difference_type

template<typename T, typename Allocator>
using difference_type = etl::ptrdiff_t

◆ pointer

template<typename T, typename Allocator>
using pointer = T*

◆ size_type

template<typename T, typename Allocator>
using size_type = etl::size_t

◆ value_type

template<typename T, typename Allocator>
using value_type = T

Constructor & Destructor Documentation

◆ dynamic_array() [1/6]

template<typename T, typename Allocator>
dynamic_array ( )
default

◆ dynamic_array() [2/6]

template<typename T, typename Allocator>
dynamic_array ( Allocator alloc)
inlineexplicit

◆ dynamic_array() [3/6]

template<typename T, typename Allocator>
dynamic_array ( etl::size_t n,
T const & value,
Allocator alloc = Allocator() )
inline

◆ dynamic_array() [4/6]

template<typename T, typename Allocator>
dynamic_array ( etl::size_t n,
Allocator alloc = Allocator() )
inlineexplicit

◆ dynamic_array() [5/6]

template<typename T, typename Allocator>
dynamic_array ( dynamic_array< T, Allocator > const & other)
delete

◆ dynamic_array() [6/6]

template<typename T, typename Allocator>
dynamic_array ( dynamic_array< T, Allocator > && other)
inlinenoexcept

◆ ~dynamic_array()

template<typename T, typename Allocator>
~dynamic_array ( )
inline

Member Function Documentation

◆ begin() [1/2]

template<typename T, typename Allocator>
auto begin ( ) -> T*
inlinenodiscard

◆ begin() [2/2]

template<typename T, typename Allocator>
auto begin ( ) const -> T const*
inlinenodiscard

◆ data() [1/2]

template<typename T, typename Allocator>
auto data ( ) -> T*
inlinenodiscard

◆ data() [2/2]

template<typename T, typename Allocator>
auto data ( ) const -> T const*
inlinenodiscard

◆ end() [1/2]

template<typename T, typename Allocator>
auto end ( ) -> T*
inlinenodiscard

◆ end() [2/2]

template<typename T, typename Allocator>
auto end ( ) const -> T const*
inlinenodiscard

◆ operator=() [1/2]

template<typename T, typename Allocator>
auto operator= ( dynamic_array< T, Allocator > && other) -> dynamic_array&
inlinenoexcept

◆ operator=() [2/2]

template<typename T, typename Allocator>
auto operator= ( dynamic_array< T, Allocator > const & other) -> dynamic_array &=delete
delete

◆ size() [1/2]

template<typename T, typename Allocator>
auto size ( ) -> etl::size_t
inlinenodiscard

◆ size() [2/2]

template<typename T, typename Allocator>
auto size ( ) const -> etl::size_t
inlinenodiscard

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