MCPcopy Create free account
hub / github.com/FastLED/FastLED / push_back

Function push_back

src/fl/stl/vector.h:191–197  ·  view source on GitHub ↗

Add an element to the end of the vector

Source from the content-addressed store, hash-verified

189
190 // Add an element to the end of the vector
191 void push_back(const T &value) FL_NOEXCEPT {
192 if (current_size < N) {
193 void *mem = &memory()[current_size];
194 new (mem) T(value);
195 ++current_size;
196 }
197 }
198
199 // Move version of push_back
200 void push_back(T &&value) FL_NOEXCEPT {

Callers 14

dequeMethod · 0.85
dequeClass · 0.85
resizeMethod · 0.85
assignMethod · 0.85
emplace_backMethod · 0.85
FixedVectorFunction · 0.85
resizeFunction · 0.85
assign_arrayFunction · 0.85
assignFunction · 0.85
vectorFunction · 0.85
insertFunction · 0.85
listMethod · 0.85

Calls 1

memoryFunction · 0.85

Tested by

no test coverage detected