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

Method append

src/fl/stl/unordered_map_small.h:145–152  ·  view source on GitHub ↗

Append a new slot at the end.

Source from the content-addressed store, hash-verified

143
144 // Append a new slot at the end.
145 size_type append(const value_type& kv) FL_NOEXCEPT {
146 size_type idx = mData.size();
147 mData.push_back(kv);
148 mOccupied.resize(idx + 1);
149 mOccupied.set(idx);
150 ++mSize;
151 return idx;
152 }
153
154 size_type append(value_type&& kv) FL_NOEXCEPT {
155 size_type idx = mData.size();

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
push_backMethod · 0.45
resizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected