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

◆ emplace()

template<typename Key>
template<typename... Args>
bool fl::VectorSet< Key >::emplace ( Args &&... args)
inline

Definition at line 284 of file set.h.

284 {
285 // Create a temporary to check if it already exists
287 auto it = find(temp_key);
288 if (it == end()) {
289 data.push_back(fl::move(temp_key));
290 return true;
291 }
292 return false;
293 }
VectorType data
Definition set.h:362
iterator find(const Key &key)
Definition set.h:245
iterator end()
Definition set.h:238

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

+ Here is the call graph for this function: