template <typename Key, typename value_type, typename inner_container_type, typename value_type_helper, int N>
class small_container
Defined at line 502 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
This is a wrapper around unordered_map that optimizes for the common case
of only containing a small number of elements. The first N elements are stored
inline in the object and don't require hashing or memory (de)allocation.
Protected Members
bool[N] small_data_allocated
value_type[N] small_data
inner_container_type inner_cont
value_type_helper helper
Public Methods
void small_container<Key, value_type, inner_container_type, value_type_helper, N> ()
Defined at line 512 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
iterator begin ()
Defined at line 624 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
iterator end ()
Defined at line 637 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
const_iterator begin ()
Defined at line 645 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
const_iterator end ()
Defined at line 658 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
bool contains (const Key & key)
Defined at line 666 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
typename inner_container_type::size_type count (const Key & key)
Defined at line 679 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
std::pair<iterator, bool> insert (const value_type & value)
Defined at line 681 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
typename inner_container_type::size_type erase (const Key & key)
Defined at line 718 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
typename inner_container_type::size_type size ()
Defined at line 728 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
bool empty ()
Defined at line 738 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h
void clear ()
Defined at line 747 of file ../../third_party/Vulkan-ValidationLayers/src/layers/containers/custom_containers.h