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

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

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

+ Here is the call graph for this function: