|
Maipa's Standard Library Extension 1.5.6
mstd
|
#include <bimap.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::const_iterator |
| using | const_iterator = _MSTD_TYPENAME17 _data_type::const_iterator |
| using | reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
| using | const_reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
Public Member Functions | |
| _MSTD_CONSTEXPR20 | bimap ()=default |
| _MSTD_CONSTEXPR20 | bimap (std::initializer_list< value_type > init) |
| _MSTD_CONSTEXPR20 | bimap (const bimap &other)=default |
| _MSTD_CONSTEXPR20 | bimap (bimap &&other) noexcept=default |
| template<mstd::iterator_of< value_type > Iter> | |
| _MSTD_CONSTEXPR20 | bimap (Iter begin, Iter end) |
| _MSTD_CONSTEXPR20 | ~bimap ()=default |
| _MSTD_CONSTEXPR20 bimap & | operator= (const bimap &other)=default |
| _MSTD_CONSTEXPR20 bimap & | operator= (bimap &&other) noexcept=default |
| _MSTD_CONSTEXPR20 mapped_type & | emplace (const key_type &key, const mapped_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | emplace (key_type &&key, mapped_type &&value) |
| _MSTD_CONSTEXPR20 mapped_type & | insert (const value_type &value) |
| _MSTD_CONSTEXPR20 mapped_type & | insert (value_type &&value) |
| template<mstd::iterator_of< value_type > Iter> | |
| _MSTD_CONSTEXPR20 void | insert (Iter begin, Iter end) |
| _MSTD_CONSTEXPR20 void | erase (const key_type &key) |
| _MSTD_CONSTEXPR20 void | erase (key_type &&key) |
| _MSTD_CONSTEXPR20 void | erase_value (const mapped_type &value) |
| _MSTD_CONSTEXPR20 void | erase_value (mapped_type &&value) |
| _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 key_type & | at_value (const mapped_type &value) |
| _MSTD_CONSTEXPR20 key_type & | at_value (mapped_type &&value) |
| _MSTD_CONSTEXPR20 const key_type & | at_value (const mapped_type &value) const |
| _MSTD_CONSTEXPR20 const key_type & | at_value (mapped_type &&value) const |
| _MSTD_CONSTEXPR20 size_t | 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 bool | contains_value (const mapped_type &value) const |
| _MSTD_CONSTEXPR20 bool | contains_value (mapped_type &&value) 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 iterator | find_value (const mapped_type &value) |
| _MSTD_CONSTEXPR20 iterator | find_value (mapped_type &&value) |
| _MSTD_CONSTEXPR20 const_iterator | find_value (const mapped_type &value) const |
| _MSTD_CONSTEXPR20 const_iterator | find_value (mapped_type &&value) 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 bimap &other) const |
| _MSTD_CONSTEXPR20 bool | operator!= (const bimap &other) const |
Private Types | |
| using | _data_type = std::vector<value_type> |
| using | _map_type = Map<key_type, size_type> |
| using | _inverted_map_type = Map<mapped_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 (UK &&key, U &&value) |
| template<class U> | |
| _MSTD_CONSTEXPR20 mapped_type & | _insert (U &&value) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 void | _erase (UK &&key) |
| template<class U> | |
| _MSTD_CONSTEXPR20 void | _erase_value (U &&value) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 mapped_type & | _at (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 const mapped_type & | _at (UK &&key) const |
| template<class U> | |
| _MSTD_CONSTEXPR20 key_type & | _at_value (U &&value) |
| template<class U> | |
| _MSTD_CONSTEXPR20 const key_type & | _at_value (U &&value) const |
| template<class UK> | |
| _MSTD_CONSTEXPR20 bool | _contains (UK &&key) const |
| template<class U> | |
| _MSTD_CONSTEXPR20 bool | _contains_value (U &&value) const |
| template<class UK> | |
| _MSTD_CONSTEXPR20 key_type & | _at_with_construct (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 iterator | _find (UK &&key) |
| template<class UK> | |
| _MSTD_CONSTEXPR20 const_iterator | _find (UK &&key) const |
| template<class U> | |
| _MSTD_CONSTEXPR20 iterator | _find_value (U &&value) |
| template<class U> | |
| _MSTD_CONSTEXPR20 const_iterator | _find_value (U &&value) const |
Private Attributes | |
| _data_type | _data |
| _map_type | _map |
| _inverted_map_type | _invertedMap |
|
private |
|
private |
|
private |
| using mstd::bimap< Key, T, Map >::const_iterator = _MSTD_TYPENAME17 _data_type::const_iterator |
| using mstd::bimap< Key, T, Map >::const_reference = const value_type& |
| using mstd::bimap< Key, T, Map >::const_reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
| using mstd::bimap< Key, T, Map >::difference_type = _MSTD_TYPENAME17 _data_type::difference_type |
| using mstd::bimap< Key, T, Map >::iterator = _MSTD_TYPENAME17 _data_type::const_iterator |
| using mstd::bimap< Key, T, Map >::key_type = remove_cvref_t<Key> |
| using mstd::bimap< Key, T, Map >::mapped_type = remove_cvref_t<T> |
| using mstd::bimap< Key, T, Map >::reference = value_type& |
| using mstd::bimap< Key, T, Map >::reverse_iterator = _MSTD_TYPENAME17 _data_type::const_reverse_iterator |
| using mstd::bimap< Key, T, Map >::size_type = _MSTD_TYPENAME17 _data_type::size_type |
| using mstd::bimap< Key, T, Map >::value_type = std::pair<key_type, mapped_type> |
|
default |
|
inline |
|
default |
|
defaultnoexcept |
|
inline |
|
default |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlinenodiscardprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
defaultnoexcept |
|
default |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
private |
|
private |
|
private |