*/
bool isEmpty() const;
+ /*!
+ * Find the first occurance of \a key.
+ */
+ Iterator find(const Key &key);
+
+ /*!
+ * Find the first occurance of \a key.
+ */
+ ConstIterator find(const Key &key) const;
+
/*!
* Returns true if the map contains an instance of \a key.
*/
bool contains(const Key &key) const;
+ /*!
+ * Erase the item at \a it from the list.
+ */
+ void erase(Iterator it);
+
/*!
* Returns a reference to the value associated with \a key.
*
return d->map.empty();
}
+template <class Key, class T>
+typename Map<Key, T>::Iterator Map<Key, T>::find(const Key &key)
+{
+ return d->map.find(key);
+}
+
+template <class Key, class T>
+typename Map<Key,T>::ConstIterator Map<Key, T>::find(const Key &key) const
+{
+ return d->map.find(key);
+}
+
template <class Key, class T>
bool Map<Key, T>::contains(const Key &key) const
{
return d->map.find(key) != d->map.end();
}
+template <class Key, class T>
+void Map<Key,T>::erase(Iterator it)
+{
+ d->map.erase(it);
+}
+
template <class Key, class T>
TagLib::uint Map<Key, T>::size() const
{