|
Maipa's Standard Library Extension 1.5.6
mstd
|
#include <ordered_map.hpp>
Public Types | |
| using | key_type = remove_cvref_t<Key> |
| using | mapped_type = remove_cvref_t<T> |
| using | value_type = std::pair<key_type, mapped_type> |
| using | reference = value_type& |
| using | const_reference = const value_type& |
| using | size_type = _MSTD_TYPENAME17 _data_type::size_type |
| using | difference_type = _MSTD_TYPENAME17 _data_type::difference_type |
| using | iterator = _MSTD_TYPENAME17 _data_type::iterator |
| using | const_iterator = _MSTD_TYPENAME17 _data_type::const_iterator |
| using | reverse_iterator = _MSTD_TYPENAME17 _data_type::reverse_iterator |
| using | const_reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
Public Member Functions | |
| _MSTD_CONSTEXPR20 | ordered_map ()=default |
| _MSTD_CONSTEXPR20 | ordered_map (const ordered_map &other)=default |
| _MSTD_CONSTEXPR20 | ordered_map (ordered_map &&other) noexcept=default |
| _MSTD_CONSTEXPR20 | ordered_map (std::initializer_list< value_type > init) |
| template<mstd::iterator_of< value_type > Iter> | |
| _MSTD_CONSTEXPR20 | ordered_map (Iter begin, Iter end) |
| _MSTD_CONSTEXPR20 | ~ordered_map ()=default |
| _MSTD_CONSTEXPR20 ordered_map & | operator= (const ordered_map &other)=default |
| _MSTD_CONSTEXPR20 ordered_map & | operator= (ordered_map &&other) noexcept=default |
| _MSTD_CONSTEXPR20 mapped_type & | emplace (const_iterator where, const key_type &key, const mapped_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | emplace (const_iterator where, key_type &&key, mapped_type &&value) |
| _MSTD_CONSTEXPR20 mapped_type & | emplace_back (const key_type &key, const mapped_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | emplace_back (key_type &&key, mapped_type &&value) |
| _MSTD_CONSTEXPR20 mapped_type & | insert (const_iterator where, const value_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | insert (const_iterator where, value_type &&value) |
| template<mstd::iterator_of< value_type > Iter> | |
| _MSTD_CONSTEXPR20 void | insert (const_iterator where, Iter begin, Iter end) |
| _MSTD_CONSTEXPR20 void | insert (const_iterator where, std::initializer_list< value_type > init) |
| _MSTD_CONSTEXPR20 mapped_type & | insert_back (const value_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | insert_back (value_type &&value) |
| template<mstd::iterator_of< value_type > Iter> | |
| _MSTD_CONSTEXPR20 void | insert_back (Iter begin, Iter end) |
| _MSTD_CONSTEXPR20 void | insert_back (std::initializer_list< value_type > init) |
| _MSTD_CONSTEXPR20 void | erase (const key_type &key) |
| _MSTD_CONSTEXPR20 void | erase (key_type &&key) |
| _MSTD_CONSTEXPR20 mapped_type & | at (const key_type &key) |
| _MSTD_CONSTEXPR20 mapped_type & | at (key_type &&key) |
| _MSTD_CONSTEXPR20 const mapped_type & | at (const key_type &key) const |
| _MSTD_CONSTEXPR20 const mapped_type & | at (key_type &&key) const |
| _MSTD_CONSTEXPR20 size_type | size () const |
| _MSTD_CONSTEXPR20 bool | empty () const |
| _MSTD_CONSTEXPR20 bool | contains (const key_type &key) const |
| _MSTD_CONSTEXPR20 bool | contains (key_type &&key) const |
| _MSTD_CONSTEXPR20 iterator | find (const key_type &key) |
| _MSTD_CONSTEXPR20 iterator | find (key_type &&key) |
| _MSTD_CONSTEXPR20 const_iterator | find (const key_type &key) const |
| _MSTD_CONSTEXPR20 const_iterator | find (key_type &&key) const |
| _MSTD_CONSTEXPR20 void | clear () |
| _MSTD_CONSTEXPR20 iterator | begin () |
| _MSTD_CONSTEXPR20 iterator | end () |
| _MSTD_CONSTEXPR20 const_iterator | begin () const |
| _MSTD_CONSTEXPR20 const_iterator | end () const |
| _MSTD_CONSTEXPR20 const_iterator | cbegin () const |
| _MSTD_CONSTEXPR20 const_iterator | cend () const |
| _MSTD_CONSTEXPR20 reverse_iterator | rbegin () |
| _MSTD_CONSTEXPR20 reverse_iterator | rend () |
| _MSTD_CONSTEXPR20 const_reverse_iterator | rbegin () const |
| _MSTD_CONSTEXPR20 const_reverse_iterator | rend () const |
| _MSTD_CONSTEXPR20 const_reverse_iterator | crbegin () const |
| _MSTD_CONSTEXPR20 const_reverse_iterator | crend () const |
| _MSTD_CONSTEXPR20 mapped_type & | operator[] (const key_type &key) |
| _MSTD_CONSTEXPR20 mapped_type & | operator[] (key_type &&key) |
| _MSTD_CONSTEXPR20 const mapped_type & | operator[] (const key_type &key) const |
| _MSTD_CONSTEXPR20 const mapped_type & | operator[] (key_type &&key) const |
| _MSTD_CONSTEXPR20 bool | operator== (const ordered_map &other) const |
| _MSTD_CONSTEXPR20 bool | operator!= (const ordered_map &other) const |
Private Types | |
| using | _data_type = std::vector<value_type> |
| using | _map_type = std::unordered_map<key_type, size_type> |
Private Member Functions | |
| _MSTD_CONSTEXPR20 void | _update_indexes (const size_type from) |
| template<class UK, class U> | |
| _MSTD_CONSTEXPR20 mapped_type & | _emplace (const_iterator where, UK &&key, U &&value) |
| template<class UK, class U> | |
| _MSTD_CONSTEXPR20 mapped_type & | _emplace_back (UK &&key, U &&value) |
| template<class U> | |
| _MSTD_CONSTEXPR20 mapped_type & | _insert (const_iterator where, U &&value) |
| template<class U> | |
| _MSTD_CONSTEXPR20 mapped_type & | _insert_back (U &&value) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 void | _erase (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 mapped_type & | _at (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 const mapped_type & | _at (UK &&key) const |
| template<class UK> | |
| _MSTD_CONSTEXPR20 bool | _contains (UK &&key) const |
| template<class UK> | |
| _MSTD_CONSTEXPR20 iterator | _find (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 const_iterator | _find (UK &&key) const |
| template<class UK> | |
| _MSTD_CONSTEXPR20 mapped_type & | _at_with_construct (UK &&key) |
Private Attributes | |
| _data_type | _orderedElements |
| _map_type | _elementsMap |
|
private |
|
private |
| using mstd::ordered_map< Key, T >::const_iterator = _MSTD_TYPENAME17 _data_type::const_iterator |
| using mstd::ordered_map< Key, T >::const_reference = const value_type& |
| using mstd::ordered_map< Key, T >::const_reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
| using mstd::ordered_map< Key, T >::difference_type = _MSTD_TYPENAME17 _data_type::difference_type |
| using mstd::ordered_map< Key, T >::iterator = _MSTD_TYPENAME17 _data_type::iterator |
| using mstd::ordered_map< Key, T >::key_type = remove_cvref_t<Key> |
| using mstd::ordered_map< Key, T >::mapped_type = remove_cvref_t<T> |
| using mstd::ordered_map< Key, T >::reference = value_type& |
| using mstd::ordered_map< Key, T >::reverse_iterator = _MSTD_TYPENAME17 _data_type::reverse_iterator |
| using mstd::ordered_map< Key, T >::size_type = _MSTD_TYPENAME17 _data_type::size_type |
| using mstd::ordered_map< Key, T >::value_type = std::pair<key_type, mapped_type> |
|
default |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
default |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
default |
|
defaultnoexcept |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
private |
|
private |