FastLED 3.9.15
Loading...
Searching...
No Matches

◆ erase() [3/3]

template<typename Key, typename Value, typename Equal = fl::SmallMapEqualTo<Key>>
iterator fl::unordered_map_small< Key, Value, Equal >::erase ( iterator pos)
inline

Definition at line 340 of file unordered_map_small.h.

340 {
341 if (pos.mMap != this || pos.mIdx >= mData.size()) return end();
342 if (!mOccupied.test(pos.mIdx)) return end(); // already erased
343 mOccupied.reset(pos.mIdx);
344 --mSize;
345 // Advance to next occupied slot
346 iterator next(this, pos.mIdx + 1);
347 return next;
348 }
iterator end() FL_NOEXCEPT

References end(), FL_NOEXCEPT, mData, mOccupied, mSize, and pos.

Referenced by erase().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: