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

◆ find() [1/2]

template<typename K, typename V, typename Compare = std::less<K>>
const_iterator MayaFlux::Memory::FlatMap< K, V, Compare >::find ( const K & key) const
inlinenodiscard

The entry for key, or end() when absent.

Definition at line 32 of file FlatMap.hpp.

33 {
34 const size_t index = lower_index(key);
35 return index < m_items.size() && !m_less(key, m_items[index].first)
36 ? m_items.begin() + static_cast<std::ptrdiff_t>(index)
37 : m_items.end();
38 }
size_t lower_index(const Q &key) const
Definition FlatMap.hpp:129
const_iterator end() const noexcept
Definition FlatMap.hpp:27
std::vector< value_type > m_items
Definition FlatMap.hpp:135
Map kept as one sorted vector, cheap to copy.
Definition FlatMap.hpp:21

Referenced by MayaFlux::Core::NetworkSubsystem::cancel_post(), MayaFlux::Core::VKCommandManager::free_command_buffer(), MayaFlux::Portal::Forma::FactoryTable< Source, Access >::merge(), MayaFlux::Memory::FlatMap< VkDeviceMemory, vk::DeviceSize >::merge_prefixed(), MayaFlux::Core::NetworkSubsystem::on_backend_state_change(), MayaFlux::Core::NetworkSubsystem::set_endpoint_receive_callback(), and MayaFlux::Core::NetworkSubsystem::set_endpoint_state_callback().

Here is the caller graph for this function: