From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-10-24 09:09:32
"David Abrahams" <dave_at_[hidden]> wrote in message
> If you are implementing trim by first copying the entire input and
> then modifying it to trim off the parts you don't want, you really
> are doing it very inefficiently... especially if most or all of the
> input must be trimmed.
really? I would have thought the heap allocation to account for most of the
running time. If we can overlook that performance it not the primary
concern, how often will you trim most of the input?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk