Template Function mrpt::containers::erase_return_next(std::list<T>&, typename std::list<T>::iterator&)

Function Documentation

template<class T>
std::list<T>::iterator mrpt::containers::erase_return_next(std::list<T> &cont, typename std::list<T>::iterator &it)

Calls the standard “erase” method of a STL container, but also returns an iterator to the next element in the container (or ::end if none)