mn_basic_light_map.hpp
Go to the documentation of this file.
Lightweight c++11 dictionary map implementation.
Definition: mn_basic_light_map.hpp:46
void swap(self_type &other)
Exchanges the contents of the container with those of other.
Definition: mn_basic_light_map.hpp:277
mn::container::pair< iterator, bool > assign(const key_type &key, Args &&... args)
Definition: mn_basic_light_map.hpp:78
constexpr size_type size() const noexcept
Get the number of map-members.
Definition: mn_basic_light_map.hpp:259
mn::container::pair< iterator, bool > insert(const value_type &value)
Inserts value.
Definition: mn_basic_light_map.hpp:122
size_type count(const key_type &key) const
Returns the number of elements with key key.
Definition: mn_basic_light_map.hpp:268
mn::container::pair< iterator, bool > emplace(const key_type &key, Args &&... args)
Inserts a new element into the container constructed in-place with the given args if there is no elem...
Definition: mn_basic_light_map.hpp:110
void insert_or_assign(const key_type &key, Args &&... args)
Definition: mn_basic_light_map.hpp:134
iterator operator[](const key_type &tKey) noexcept
Read value of map for given key.
Definition: mn_basic_light_map.hpp:287
iterator find(const key_type &tKey) noexcept
Finds an element with key equivalent to key.
Definition: mn_basic_light_map.hpp:212
~basic_light_map()
Definition: mn_basic_light_map.hpp:68
bool insert(const key_type &key, const mapped_type &value)
insert key_type key with mapped_type value.
Definition: mn_basic_light_map.hpp:151
const_iterator operator[](const key_type &tKey) const noexcept
Read value of map for given key.
Definition: mn_basic_light_map.hpp:296
const TPairType * const_pointer
Definition: mn_basic_light_map.hpp:55
const TPairType & const_reference
Definition: mn_basic_light_map.hpp:54
mn::container::pair< iterator, bool > assign(const value_type &vValue)
Definition: mn_basic_light_map.hpp:84
basic_light_map(const size_type start_size=32) noexcept
Definition: mn_basic_light_map.hpp:65
bool insert(key_type &&key, mapped_type &&value)
insert key_type key with mapped_type value.
Definition: mn_basic_light_map.hpp:161
const_iterator find(const key_type &tKey) const noexcept
Finds an element with key equivalent to key.
Definition: mn_basic_light_map.hpp:232
mn::ptrdiff_t difference_type
Definition: mn_basic_light_map.hpp:57
TContainer m_ayKeyValue
Definition: mn_basic_light_map.hpp:300
size_type erase(const key_type &tKey)
Removes the element with the key equivalent to tKey.
Definition: mn_basic_light_map.hpp:191
const TValue * const_iterator
Definition: mn_basic_light_map.hpp:61
iterator erase(const_iterator pos)
Removes specified elements from the container.
Definition: mn_basic_light_map.hpp:173
constexpr bool empty() const noexcept
Is the map empty.
Definition: mn_basic_light_map.hpp:251
iterator erase(const_iterator first, const_iterator last)
Removes specified elements from the container.
Definition: mn_basic_light_map.hpp:183
Definition: mn_vector.hpp:117
Basic vector container This file is part of the Mini Thread Library (https://github....
malloc_allocator< basic_allocator_filter > default_allocator
Definition: mn_default_allocator.hpp:30
Definition: mn_allocator_typetraits.hpp:25
Definition: mn_pair.hpp:28