Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2004-02-23 06:01:18


Bjorn.Karlsson_at_[hidden] 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_at_[hidden], web: http://www.aixigo.de

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk