|
ESPHome 2026.12.0-dev
|
FixedVector over caller-owned raw storage (cg.static_storage): elements are destroyed, the storage is never freed. More...
#include <helpers.h>
Public Member Functions | |
| StaticFixedVector ()=default | |
| ~StaticFixedVector () | |
| StaticFixedVector (const StaticFixedVector &)=delete | |
| StaticFixedVector & | operator= (const StaticFixedVector &)=delete |
| void | init (std::span< T > storage) |
| Called once by code generation, on an empty vector. | |
| void | clear () |
| void | push_back (const T &value) |
| Ignores pushes beyond the storage. | |
| void | push_back (T &&value) |
| template<typename... Args> | |
| T * | emplace_back (Args &&...args) |
| The new element, or nullptr when full. | |
| size_t | size () const |
| bool | empty () const |
| size_t | capacity () const |
| T & | operator[] (size_t i) |
| const T & | operator[] (size_t i) const |
| T * | begin () |
| T * | end () |
| const T * | begin () const |
| const T * | end () const |
FixedVector over caller-owned raw storage (cg.static_storage): elements are destroyed, the storage is never freed.
|
default |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |