
13 Dec
2016
13 Dec
'16
9:41 p.m.
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: http://www.boost.org/doc/libs/1_62_0/libs/range/doc/html/range/reference/ada..., although that is specifically for `regex_token_iterator`