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

◆ erase() [1/2]

template<typename Key, typename Allocator = fl::allocator<Key>>
bool fl::VectorSet< Key, Allocator >::erase ( const Key & key)
inline

Definition at line 236 of file set.h.

236 {
237 auto it = find(key);
238 if (it != end()) {
239 data.erase(it);
240 return true;
241 }
242 return false;
243 }
VectorType data
Definition set.h:273
iterator end()
Definition set.h:182
iterator find(const Key &key)
Definition set.h:186

References data, end(), and find().

+ Here is the call graph for this function: