mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Add find and erase semantics like those in tlist.h
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@328830 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -101,12 +101,30 @@ bool Map<Key, T>::isEmpty() const
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user