Boost logo

Boost Users :

Subject: Re: [Boost-users] A library for "string chains"?
From: Eric Niebler (eniebler_at_[hidden])
Date: 2014-08-20 18:34:29


On 8/15/2014 12:10 AM, Jan Herrmann wrote:
> On 14.08.2014 03:37, Richard wrote:
>> Now the question remains... is there something that already exists
>> that provides a string_view from a vector of string_ref's?
>
> Range with
> http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/join.html
> could help.

As Richard discovered for himself, join doesn't help here. What
Boost.Range needs is an adaptor that flattens a range of ranges into a
range. This is essential functionality, and I describe some of the cool
stuff than can be implemented with it here:

http://ericniebler.com/2014/04/27/range-comprehensions/

Eric


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net