C++ Actor Framework 0.19
|
Maps strings to values of type V
, but unlike std::map<std::string, V>
accepts std::string_view
for looking up keys efficiently.
More...
#include <dictionary.hpp>
Public Member Functions | |
dictionary (dictionary &&)=default | |
dictionary (const dictionary &)=default | |
dictionary (std::initializer_list< value_type > xs) | |
template<class InputIterator > | |
dictionary (InputIterator first, InputIterator last) | |
dictionary & | operator= (dictionary &&)=default |
dictionary & | operator= (const dictionary &)=default |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | crbegin () 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 |
const_reverse_iterator | crend () const noexcept |
bool | empty () const noexcept |
size_type | size () const noexcept |
map_type & | container () noexcept |
Gives raw access to the underlying container. | |
const map_type & | container () const noexcept |
Gives raw access to the underlying container. | |
void | clear () noexcept |
void | swap (dictionary &other) |
template<class K , class T > | |
iterator_bool_pair | emplace (K &&key, T &&value) |
iterator_bool_pair | insert (value_type kvp) |
iterator | insert (iterator hint, value_type kvp) |
template<class T > | |
iterator_bool_pair | insert (std::string_view key, T &&value) |
template<class K , class T > | |
iterator | emplace_hint (iterator hint, K &&key, T &&value) |
template<class T > | |
iterator | insert (iterator hint, std::string_view key, T &&value) |
void | insert (const_iterator first, const_iterator last) |
template<class T > | |
iterator_bool_pair | insert_or_assign (std::string_view key, T &&value) |
template<class T > | |
iterator | insert_or_assign (iterator hint, std::string_view key, T &&value) |
bool | contains (std::string_view key) const noexcept |
size_t | count (std::string_view key) const noexcept |
iterator | find (std::string_view key) noexcept |
const_iterator | find (std::string_view key) const noexcept |
iterator | lower_bound (std::string_view key) |
const_iterator | lower_bound (std::string_view key) const |
iterator | upper_bound (std::string_view key) |
const_iterator | upper_bound (std::string_view key) const |
iterator | erase (const_iterator i) |
iterator | erase (const_iterator first, const_iterator last) |
size_type | erase (std::string_view key) |
mapped_type & | operator[] (std::string_view key) |
Maps strings to values of type V
, but unlike std::map<std::string, V>
accepts std::string_view
for looking up keys efficiently.