Boost logo

Boost :

From: Michel André (michel.andre_at_[hidden])
Date: 2002-11-04 15:07:12


Would it be possible to add an algorithm in the spirit of boost::prior and
boost::next
along the lines of:

template<typename iter_t, typename offset_t>
iter_t advance(iter_t iter, offset_t offset)
{
    std::advance(iter, offset);
    return iter;
}

This would add a dependency to <algorithm> wich maybe is'nt acceptable for
utility.hpp. Maybe it could be added to sequence_algo?

regards
/Michel


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