Template Class SafeMap

Class Documentation

template<class K, class T>
class SafeMap

Simple thread-safe map.

Note: probably not actually thread safe.

Template Parameters:
  • K – the key element type

  • T – the mapped element type

Public Functions

inline SafeMap()

Constructor.

inline ~SafeMap()
inline void insert(std::pair<const K, T> &&p)
inline void erase(typename std::map<K, T>::const_iterator &it)
inline void erase(typename std::map<K, T>::iterator &it)
inline std::map<K, T>::const_iterator find(const K &k) const
inline bool empty() const
inline bool contains(const K &k) const
inline std::pair<typename std::map<K, T>::const_iterator, typename std::map<K, T>::const_iterator> equal_range(const K &k) const
inline std::map<K, T>::iterator begin() noexcept
inline std::map<K, T>::iterator end() noexcept
inline std::map<K, T>::const_iterator cbegin() const noexcept
inline std::map<K, T>::const_iterator cend() const noexcept