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

#include <etl/vector.hpp>

Public Types

using allocator_type = Allocator
 
using const_iterator = T const *
 
using const_pointer = T const *
 
using const_reference = T const &
 
using difference_type = etl::ptrdiff_t
 
using iterator = T *
 
using pointer = T *
 
using reference = T &
 
using size_type = etl::size_t
 
using value_type = T
 

Public Member Functions

constexpr vector ()=default
 
constexpr vector (Allocator alloc)
 
constexpr vector (etl::size_t n, Allocator alloc=Allocator())
 
constexpr vector (etl::size_t n, T const &value, Allocator alloc=Allocator())
 
constexpr vector (vector &&other) noexcept
 
constexpr vector (vector const &o)=delete
 
constexpr ~vector () noexcept
 
constexpr auto begin () -> T *
 
constexpr auto begin () const -> T const *
 
constexpr auto capacity () -> etl::size_t
 
constexpr auto capacity () const -> etl::size_t
 
constexpr auto clear () noexcept -> void
 
constexpr auto data () -> T *
 
constexpr auto data () const -> T const *
 
constexpr auto empty () -> bool
 
constexpr auto empty () const -> bool
 
constexpr auto end () -> T *
 
constexpr auto end () const -> T const *
 
constexpr auto operator= (vector &&other) noexcept -> vector &
 
constexpr auto operator= (vector const &o) -> vector &=delete
 
constexpr auto size () -> etl::size_t
 
constexpr auto size () const -> etl::size_t
 

Friends

constexpr auto swap (vector &lhs, vector &rhs) -> void
 

Member Typedef Documentation

◆ allocator_type

◆ const_iterator

◆ const_pointer

◆ const_reference

◆ difference_type

◆ iterator

◆ pointer

◆ reference

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ vector() [1/6]

template<typename T , typename Allocator >
constexpr vector ( )
constexprdefault

◆ vector() [2/6]

template<typename T , typename Allocator >
constexpr vector ( Allocator  alloc)
inlineexplicitconstexpr

◆ vector() [3/6]

template<typename T , typename Allocator >
constexpr vector ( etl::size_t  n,
T const value,
Allocator  alloc = Allocator() 
)
inlineconstexpr

◆ vector() [4/6]

template<typename T , typename Allocator >
constexpr vector ( etl::size_t  n,
Allocator  alloc = Allocator() 
)
inlineexplicitconstexpr

◆ vector() [5/6]

template<typename T , typename Allocator >
constexpr vector ( vector< T, Allocator > const o)
constexprdelete

◆ vector() [6/6]

template<typename T , typename Allocator >
constexpr vector ( vector< T, Allocator > &&  other)
inlineconstexprnoexcept

◆ ~vector()

template<typename T , typename Allocator >
constexpr ~vector ( )
inlineconstexprnoexcept

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ capacity() [1/2]

template<typename T , typename Allocator >
constexpr auto capacity ( ) -> etl::size_t
inlineconstexpr

◆ capacity() [2/2]

template<typename T , typename Allocator >
constexpr auto capacity ( ) const -> etl::size_t
inlineconstexpr

◆ clear()

template<typename T , typename Allocator >
constexpr auto clear ( ) -> void
inlineconstexprnoexcept

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ empty() [1/2]

template<typename T , typename Allocator >
constexpr auto empty ( ) -> bool
inlineconstexpr

◆ empty() [2/2]

template<typename T , typename Allocator >
constexpr auto empty ( ) const -> bool
inlineconstexpr

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ operator=() [1/2]

template<typename T , typename Allocator >
constexpr auto operator= ( vector< T, Allocator > &&  other) -> vector&
inlineconstexprnoexcept

◆ operator=() [2/2]

template<typename T , typename Allocator >
constexpr auto operator= ( vector< T, Allocator > const o) -> vector &=delete
constexprdelete

◆ size() [1/2]

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

◆ size() [2/2]

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

Friends And Related Symbol Documentation

◆ swap

template<typename T , typename Allocator >
constexpr auto swap ( vector< T, Allocator > &  lhs,
vector< T, Allocator > &  rhs 
) -> void
friend

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