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

Function emplace_back

src/fl/stl/vector.h:210–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 // Emplace back - construct in place
209 template<typename... Args>
210 void emplace_back(Args&&... args) FL_NOEXCEPT {
211 if (current_size < N) {
212 void *mem = &memory()[current_size];
213 new (mem) T(fl::forward<Args>(args)...);
214 ++current_size;
215 }
216 }
217
218 void reserve(fl::size n) FL_NOEXCEPT {
219 if (n > N) {

Callers

nothing calls this directly

Calls 1

memoryFunction · 0.85

Tested by

no test coverage detected