Grow to new_capacity. Moves existing elements.
Definition at line 71 of file basic_vector.cpp.hpp.
71 {
72
79 return;
80 }
81 }
82
83
84 FASTLED_ASSERT(
mResource !=
nullptr,
"memory_resource is null");
86 FASTLED_ASSERT(alloc_bytes > 0, "zero allocation in grow_to");
87 void* new_buf =
mResource->allocate(alloc_bytes);
88
89 if (!new_buf) return;
90
91
96 } else {
98 }
99 }
100
101
104 }
105
108}
const vector_element_ops * mOps
void trivial_copy(void *dst, const void *src, fl::size count) const FL_NO_EXCEPT
bool isInline() const FL_NO_EXCEPT
Is data currently in the inline buffer?
memory_resource * mResource
void uninitialized_move_n_impl(void *dst, void *src, fl::size count) const FL_NO_EXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
References fl::FL_NO_EXCEPT, isInline(), mArray, mCapacity, mElementSize, mOps, mResource, mSize, trivial_copy(), and uninitialized_move_n_impl().
Referenced by ensure_capacity(), and reserve_impl().