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

◆ slice() [2/2]

std::optional< CompositeSlice > MayaFlux::Kakshya::CompositeAccess::slice ( size_t  start,
size_t  count 
) const
noexcept

Borrow count consecutive elements starting at start.

Parameters
startFirst element index.
countNumber of elements to select.
Returns
Slice, including an empty slice, or std::nullopt if out of range.

Definition at line 76 of file CompositeAccess.cpp.

77{
78 if (start > size() || count > size() - start)
79 return std::nullopt;
80 return CompositeSlice(*this, start, count);
81}
size_t count
size_t size() const noexcept
Number of packed elements in the current element store.

References count, and size.