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

◆ emplace()

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

Definition at line 225 of file set.h.

225 {
226 // Create a temporary to check if it already exists
228 auto it = find(temp_key);
229 if (it == end()) {
230 data.push_back(fl::move(temp_key));
231 return true;
232 }
233 return false;
234 }
VectorType data
Definition set.h:273
iterator end()
Definition set.h:182
iterator find(const Key &key)
Definition set.h:186

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

+ Here is the call graph for this function: