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

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

◆ const_iterator

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

◆ const_pointer

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

◆ const_reference

template<typename T, typename Allocator>
using const_reference = T const&

◆ difference_type

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

◆ iterator

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

◆ pointer

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

◆ reference

template<typename T, typename Allocator>
using reference = 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

◆ vector() [1/6]

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

◆ vector() [2/6]

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

◆ vector() [3/6]

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

◆ vector() [4/6]

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

◆ vector() [5/6]

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

◆ vector() [6/6]

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

◆ ~vector()

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

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ capacity() [1/2]

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

◆ capacity() [2/2]

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

◆ clear()

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

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ empty() [1/2]

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

◆ empty() [2/2]

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

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ size() [1/2]

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

◆ size() [2/2]

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

Friends And Related Symbol Documentation

◆ swap

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

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