in the last release, so this isn't API breakage.)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@585152
283d02a7-25f6-0310-bc7c-
ecb5cbfe19da
/*!
* Inserts a copy of \a value before \a it.
*/
- List<T> &insert(Iterator it, const T &value);
+ Iterator insert(Iterator it, const T &value);
/*!
* Inserts the \a value into the list. This assumes that the list is
/*!
* Erase the item at \a it from the list.
*/
- List<T> &erase(Iterator it);
+ Iterator erase(Iterator it);
/*!
* Returns a reference to the first item in the list.
}
template <class T>
-List<T> &List<T>::insert(Iterator it, const T &item)
+typename List<T>::Iterator List<T>::insert(Iterator it, const T &item)
{
detach();
- d->list.insert(it, item);
- return *this;
+ return d->list.insert(it, item);
}
template <class T>
}
template <class T>
-List<T> &List<T>::erase(Iterator it)
+typename List<T>::Iterator List<T>::erase(Iterator it)
{
- d->list.erase(it);
- return *this;
+ return d->list.erase(it);
}
template <class T>