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

◆ location_of()

template<typename Source, typename Access = RecordAccess<Source>>
std::optional< uint64_t > MayaFlux::Reflect::AttributeIndex< Source, Access >::location_of ( std::string_view value) const
inlinenodiscard

The location of the element that holds a value, or nullopt.

Definition at line 75 of file AttributeChecks.hpp.

76 {
77 const auto found = m_claimed.find(value);
78 if (found == m_claimed.end())
79 return std::nullopt;
80 return found->second;
81 }
The values of one attribute across a tree, each claimed by one element.

References m_claimed.