
23 Feb
2004
23 Feb
'04
11:01 a.m.
Bjorn.Karlsson@readsoft.com wrote:
Something like this should work:
template <class T, class Distance> inline T prior(T x, Distance n) { return next(std::reverse_iterator<T>(x),n).base(); }
Reminds me that I should read all posts *before* answering to one of them ;) Regards, Daniel -- Daniel Frey aixigo AG - financial solutions & technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de