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

◆ insert() [2/2]

template<typename Key>
bool fl::VectorSet< Key >::insert ( Key && key)
inline

Definition at line 273 of file set.h.

273 {
274 auto it = find(key);
275 if (it == end()) {
276 data.push_back(fl::move(key));
277 return true;
278 }
279 return false;
280 }
VectorType data
Definition set.h:362
iterator find(const Key &key)
Definition set.h:245
iterator end()
Definition set.h:238

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

+ Here is the call graph for this function: