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);
97 ConstIterator
begin()
const;
103 ConstIterator
cbegin()
const;
115 ConstIterator
end()
const;
121 ConstIterator
cend()
const;
140 unsigned int size()
const;
152 Iterator
find(
const Key &key);
157 ConstIterator
find(
const Key &key)
const;
162 bool contains(
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;
bool operator==(const Map< Key, T > &m) const
ConstIterator cbegin() const
ConstIterator cend() const
unsigned int size() const
Map< Key, T > & erase(Iterator it)
void swap(Map< Key, T > &m) noexcept
A generic, implicitly shared map.
Definition: tmap.h:44
Map< Key, T > & operator=(const Map< Key, T > &m)
bool contains(const Key &key) const
Iterator find(const Key &key)
const T & operator[](const Key &key) const
bool operator!=(const Map< Key, T > &m) const
Map< Key, T > & insert(const Key &key, const T &value)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
T value(const Key &key, const T &defaultValue=T()) const