Subject: Re: [boost] [algorithm] split_copy
From: Seth (bugs_at_[hidden])
Date: 2016-12-13 16:41:59
On 13-12-16 21:43, Chambers, Matthew wrote:
> I like the simplicity and flexibility of boost::algorithm::split, but
> whenever I do some one-off, trivial split with it where performance
> isn't an issue, I find myself wishing that I didn't have to predeclare
> the result container.
In the interest in avoiding duplication, I'd say a range-adaptor would
be in order, so you can just use `copy_range<T>` to achieve the copy you
want without predeclaring.
In fact, something very similar already exists:
although that is specifically for `regex_token_iterator`
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk