wavelength 1.0.0
Loading...
Searching...
No Matches
listat.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
27template <typename T>
28typename std::list<T>::iterator ListAt(std::list<T> &values, int nIndex) {
29 typename std::list<T>::iterator it = values.end();
30 do {
31 ++it;
32 } while (--nIndex >= 0);
33 return it;
34}
std::list< T >::iterator ListAt(std::list< T > &values, int nIndex)
Report the element of a list at an index, counting from the first.
Definition listat.h:28