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

◆ emplace()

template<typename Key, size N>
template<typename... Args>
bool fl::VectorSetFixed< Key, N >::emplace ( Args &&... args)
inline

Definition at line 87 of file set.h.

87 {
88 if (data.size() < N) {
89 // Create a temporary to check if it already exists
91 auto it = find(temp_key);
92 if (it == end()) {
93 data.push_back(fl::move(temp_key));
94 return true;
95 }
96 }
97 return false;
98 }
iterator end()
Definition set.h:40
VectorType data
Definition set.h:169
iterator find(const Key &key)
Definition set.h:44

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

+ Here is the call graph for this function: