MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ remove_first_by_key()

bool MayaFlux::Nodes::HookList::remove_first_by_key ( const std::type_info &  key)

Removes the first entry registered with this callable type.

Definition at line 221 of file NodeUtils.cpp.

222{
223 return mutate([&](std::vector<HookEntry>& entries) {
224 const auto it = std::ranges::find_if(entries, [&](const HookEntry& entry) { return *entry.key == key; });
225 if (it == entries.end()) {
226 return false;
227 }
228 entries.erase(it);
229 return true;
230 });
231}
bool mutate(const std::function< bool(std::vector< HookEntry > &)> &edit)

References MayaFlux::Nodes::HookEntry::key, and mutate().

Referenced by MayaFlux::Nodes::Generator::Phasor::remove_threshold_callback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: