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

◆ insert()

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

Definition at line 57 of file set.h.

57 {
58 if (data.size() < N) {
59 auto it = find(key);
60 if (it == end()) {
61 data.push_back(key);
62 return true;
63 }
64 }
65 return false;
66 }
iterator find(const Key &key)
Definition set.h:39
VectorType data
Definition set.h:150
iterator end()
Definition set.h:29

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

+ Here is the call graph for this function: