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

◆ find_slot() [1/2]

std::optional< std::reference_wrapper< RelationSlot > > MayaFlux::Nodes::Network::RelationNetwork::find_slot ( std::string_view  name)

Find a slot by name.

Returns
A reference to the slot, or nullopt if not found

Definition at line 47 of file RelationNetwork.cpp.

48{
49 auto it = std::ranges::find_if(m_slots, [name](const RelationSlot& slot) { return slot.name == name; });
50 if (it == m_slots.end()) {
51 return std::nullopt;
52 }
53 return std::ref(*it);
54}
std::string name
Definition VKDevice.cpp:123

References m_slots, name, and MayaFlux::Nodes::Network::RelationSlot::name.