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

◆ insert() [1/2]

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

Definition at line 263 of file set.h.

263 {
264 auto it = find(key);
265 if (it == end()) {
266 data.push_back(key);
267 return true;
268 }
269 return false;
270 }
VectorType data
Definition set.h:362
iterator find(const Key &key)
Definition set.h:245
iterator end()
Definition set.h:238

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

+ Here is the call graph for this function: