emlabcpp
modern opinionated embedded C++ library
|
Data container for up to N elements. More...
#include <static_vector.h>
Public Types | |
using | value_type = T |
using | size_type = std::size_t |
using | reference = T & |
using | const_reference = T const & |
using | iterator = T * |
using | const_iterator = T const * |
Public Member Functions | |
static_vector ()=default | |
static_vector (static_vector const &other) | |
static_vector (static_vector &&other) noexcept | |
static_vector (std::size_t M, T const &item) | |
template<std::size_t M> | |
requires (M<=N) explicit static_vector(std | |
static_vector & | operator= (static_vector const &other) |
static_vector & | operator= (static_vector &&other) noexcept |
template<std::size_t M> | |
requires (M<=N) static_vector &operator | |
template<typename Container > | |
void | copy_from (Container const &cont) |
count of items More... | |
template<typename Container > | |
void | move_from (Container &cont) |
void | purge () |
Cleans entire buffer from items. More... | |
Public Attributes | |
size_type | size_ = 0 |
Static Public Attributes | |
static constexpr std::size_t | capacity = N |
Data container for up to N elements.
using emlabcpp::static_vector< T, N >::const_iterator = T const* |
using emlabcpp::static_vector< T, N >::const_reference = T const& |
using emlabcpp::static_vector< T, N >::iterator = T* |
using emlabcpp::static_vector< T, N >::reference = T& |
using emlabcpp::static_vector< T, N >::size_type = std::size_t |
using emlabcpp::static_vector< T, N >::value_type = T |
|
default |
|
inline |
References emlabcpp::static_vector< T, N >::copy_from().
|
inlinenoexcept |
References emlabcpp::static_vector< T, N >::move_from().
|
inline |
References emlabcpp::max(), and emlabcpp::N.
|
inline |
count of items
References emlabcpp::static_vector< T, N >::size_.
|
inline |
References emlabcpp::static_vector< T, N >::size_.
|
inlinenoexcept |
References emlabcpp::static_vector< T, N >::move_from().
|
inline |
References emlabcpp::static_vector< T, N >::copy_from().
|
inline |
Cleans entire buffer from items.
References emlabcpp::static_vector< T, N >::size_.
|
inline |
References emlabcpp::data(), and emlabcpp::static_vector< T, N >::move_from().
emlabcpp::static_vector< T, N >::requires | ( | M<= | N | ) | & |
References emlabcpp::data(), and emlabcpp::static_vector< T, N >::move_from().
|
staticconstexpr |
size_type emlabcpp::static_vector< T, N >::size_ = 0 |