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

Method reserve

src/fl/stl/unordered_map_small.h:384–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 memory_resource* get_memory_resource() const FL_NOEXCEPT { return mResource; }
383
384 void reserve(size_type n) FL_NOEXCEPT {
385 mData.reserve(n);
386 if (n > mOccupied.size()) mOccupied.resize(n);
387 }
388
389 // Remove unoccupied gaps, compacting the vector.
390 void compact() FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected