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

Method insert

src/fl/stl/multi_set.h:211–215  ·  view source on GitHub ↗

Insert always succeeds for multiset

Source from the content-addressed store, hash-verified

209
210 // Insert always succeeds for multiset
211 iterator insert(const value_type& value) {
212 ValueWithId vwid(value, mNextId++);
213 auto result = mTree.insert(vwid);
214 return iterator(result.first);
215 }
216
217 iterator insert(value_type&& value) {
218 ValueWithId vwid(fl::move(value), mNextId++);

Callers 1

emplaceMethod · 0.45

Calls 2

iteratorClass · 0.70
insertFunction · 0.70

Tested by

no test coverage detected