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 48 of file set.h.

48 {
49 if (data.size() < N) {
50 auto it = find(key);
51 if (it == end()) {
52 data.push_back(key);
53 return true;
54 }
55 }
56 return false;
57 }
iterator find(const Key &key)
Definition set.h:30
VectorType data
Definition set.h:128
iterator end()
Definition set.h:26

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

+ Here is the call graph for this function: