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

◆ const_pointer

◆ difference_type

◆ pointer

◆ size_type

◆ value_type

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*
inline

◆ begin() [2/2]

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

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

◆ size() [1/2]

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

◆ size() [2/2]

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

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