ShrinkableMap

template<class Key, class T>
class cppmicroservices::ShrinkableMap

A std::map style associative container allowing query and removal operations only.

Public Types

using container_type = std::map<Key, T>
using iterator = typename container_type::iterator
using const_iterator = typename container_type::const_iterator
using size_type = typename container_type::size_type
using key_type = typename container_type::key_type
using mapped_type = typename container_type::mapped_type
using value_type = typename container_type::value_type
using reference = typename container_type::reference
using const_reference = typename container_type::const_reference

Public Functions

inline ShrinkableMap()
inline iterator begin()
inline const_iterator begin() const
inline iterator end()
inline const_iterator end() const
inline void erase(iterator pos)
inline void erase(iterator first, iterator last)
inline size_type erase(Key const &key)
inline bool empty() const
inline void clear()
inline size_type size() const
inline size_type max_size() const
inline T &operator[](Key const &key)

Deprecated since version 3.1.0: This function exists only to maintain backwards compatibility and will be removed in the next major release. Use at(size_type pos) instead.

inline T &at(Key const &key)
inline T const &at(Key const &key) const
inline size_type count(Key const &key) const
inline iterator find(Key const &key)
inline const_iterator find(Key const &key) const
inline std::pair<iterator, iterator> equal_range(Key const &key)
inline std::pair<const_iterator, const_iterator> equal_range(Key const &key) const
inline iterator lower_bound(Key const &key)
inline const_iterator lower_bound(Key const &key) const
inline iterator upper_bound(Key const &key)
inline const_iterator upper_bound(Key const &key) const