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

◆ at()

std::optional< Composite > MayaFlux::Kakshya::CompositeAccess::at ( size_t  index) const
noexcept

Borrow an element by index.

Parameters
indexZero-based element index.
Returns
Element view, or std::nullopt if out of range.

Definition at line 55 of file CompositeAccess.cpp.

56{
57 if (index >= size())
58 return std::nullopt;
59 return Composite(*m_layout, *m_elements, *m_text, *m_blob, index);
60}
uint32_t index
Definition VKDevice.cpp:122
size_t size() const noexcept
Number of packed elements in the current element store.

References index, and size.