31#include <initializer_list>
44 template <
class Key,
class T>
class Map
47#ifndef DO_NOT_DOCUMENT
48#ifdef WANT_CLASS_INSTANTIATION_OF_MAP
57 using Iterator =
typename std::map<class Key, class T>::iterator;
58 using ConstIterator =
typename std::map<class Key, class T>::const_iterator;
60 using Iterator =
typename std::map<Key, T>::iterator;
61 using ConstIterator =
typename std::map<Key, T>::const_iterator;
80 Map(std::initializer_list<std::pair<const Key, T>> init);
115 ConstIterator
end()
const;
157 ConstIterator
find(
const Key &key)
const;
184 T
value(
const Key &key,
const T &defaultValue = T())
const;
237#ifndef DO_NOT_DOCUMENT
238 template <
class KeyP,
class TP>
class MapPrivate;
239 std::shared_ptr<MapPrivate<Key, T>> d;
A generic, implicitly shared map.
Definition: tmap.h:45
T value(const Key &key, const T &defaultValue=T()) const
T & operator[](const Key &key)
const T & operator[](const Key &key) const
ConstIterator cend() const
void swap(Map< Key, T > &m) noexcept
bool operator==(const Map< Key, T > &m) const
bool operator!=(const Map< Key, T > &m) const
Map< Key, T > & erase(const Key &key)
Map< Key, T > & insert(const Key &key, const T &value)
Iterator find(const Key &key)
ConstIterator find(const Key &key) const
unsigned int size() const
bool contains(const Key &key) const
ConstIterator end() const
Map< Key, T > & operator=(const Map< Key, T > &m)
Map(std::initializer_list< std::pair< const Key, T > > init)
ConstIterator begin() const
Map< Key, T > & operator=(std::initializer_list< std::pair< const Key, T > > init)
ConstIterator cbegin() const
Map(const Map< Key, T > &m)
Map< Key, T > & erase(Iterator it)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41