From: Kevin S. Van Horn (kevin.vanhorn_at_[hidden])
Date: 2001-10-31 16:00:55
On Wed, 31 Oct 2001, John Suters wrote:
> > The VECTOR template argument is unnecessary and undesirable, as it limits
> > the generality of transform(). I would suggest taking a random-access
> > iterator range as argument instead.
> > std::iterator_traits<RandIterator>::value_type then gives you the output
> > value type.
> Fair enough. My reason for using a vector was that I reserve up to a minimum
> power of two, usually extending the vector.
You could have a separate input and output range, where the output range
length must be a power of two and >= input range length.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk