C++ Actor Framework 0.19
|
A map abstraction with an unsorted std::vector
providing O(n)
lookup.
More...
#include <unordered_flat_map.hpp>
Public Member Functions | |
unordered_flat_map (std::initializer_list< value_type > l) | |
template<class InputIterator > | |
unordered_flat_map (InputIterator first, InputIterator last) | |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rbegin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rend () const noexcept |
bool | empty () const noexcept |
size_type | size () const noexcept |
void | reserve (size_type count) |
void | shrink_to_fit () |
vector_type & | container () noexcept |
Gives raw access to the underlying container. | |
const vector_type & | container () const noexcept |
Gives raw access to the underlying container. | |
void | clear () noexcept |
void | swap (unordered_flat_map &other) |
std::pair< iterator, bool > | insert (value_type x) |
iterator | insert (iterator hint, value_type x) |
iterator | insert (const_iterator hint, value_type x) |
template<class InputIterator > | |
void | insert (InputIterator first, InputIterator last) |
template<class... Ts> | |
std::pair< iterator, bool > | emplace (Ts &&... xs) |
template<class... Ts> | |
iterator | emplace_hint (const_iterator hint, Ts &&... xs) |
iterator | erase (const_iterator i) |
iterator | erase (const_iterator first, const_iterator last) |
size_type | erase (const key_type &x) |
template<class K > | |
mapped_type & | at (const K &key) |
template<class K > | |
const mapped_type & | at (const K &key) const |
mapped_type & | operator[] (const key_type &key) |
template<class K > | |
iterator | find (const K &key) |
template<class K > | |
const_iterator | find (const K &key) const |
template<class K > | |
size_type | count (const K &key) const |
Related Symbols | |
(Note that these are not member symbols.) | |
template<class K , class T , class A > | |
bool | operator== (const unordered_flat_map< K, T, A > &xs, const unordered_flat_map< K, T, A > &ys) |
template<class K , class T , class A > | |
bool | operator!= (const unordered_flat_map< K, T, A > &xs, const unordered_flat_map< K, T, A > &ys) |
template<class K , class T , class A > | |
bool | operator< (const unordered_flat_map< K, T, A > &xs, const unordered_flat_map< K, T, A > &ys) |
template<class K , class T , class A > | |
bool | operator>= (const unordered_flat_map< K, T, A > &xs, const unordered_flat_map< K, T, A > &ys) |
A map abstraction with an unsorted std::vector
providing O(n)
lookup.
const mapped_type & caf::unordered_flat_map< Key, T, Allocator >::at | ( | const K & | key | ) | const |
We call the non-const version in order to avoid code duplication but restore the const-ness when returning from the function.
const_iterator caf::unordered_flat_map< Key, T, Allocator >::find | ( | const K & | key | ) | const |
We call the non-const version in order to avoid code duplication but restore the const-ness when returning from the function.