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

◆ insert() [1/2]

template<typename Key, size N>
bool fl::VectorSetFixed< Key, N >::insert ( const Key & key)
inline

Definition at line 64 of file set.h.

64 {
65 if (data.size() < N) {
66 auto it = find(key);
67 if (it == end()) {
68 data.push_back(key);
69 return true;
70 }
71 }
72 return false;
73 }
iterator end()
Definition set.h:42
VectorType data
Definition set.h:201
iterator find(const Key &key)
Definition set.h:46

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

+ Here is the call graph for this function: