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

◆ insert() [1/2]

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

Definition at line 204 of file set.h.

204 {
205 auto it = find(key);
206 if (it == end()) {
207 data.push_back(key);
208 return true;
209 }
210 return false;
211 }
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: