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

◆ insert() [2/2]

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

Definition at line 214 of file set.h.

214 {
215 auto it = find(key);
216 if (it == end()) {
217 data.push_back(fl::move(key));
218 return true;
219 }
220 return false;
221 }
VectorType data
Definition set.h:273
iterator end()
Definition set.h:182
iterator find(const Key &key)
Definition set.h:186

References data, end(), find(), and fl::move().

+ Here is the call graph for this function: