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

◆ insert() [2/2]

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

Definition at line 74 of file set.h.

74 {
75 if (data.size() < N) {
76 auto it = find(key);
77 if (it == end()) {
78 data.push_back(fl::move(key));
79 return true;
80 }
81 }
82 return false;
83 }
iterator end()
Definition set.h:40
VectorType data
Definition set.h:169
iterator find(const Key &key)
Definition set.h:44

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

+ Here is the call graph for this function: