On 14.08.2014 03:37, Richard wrote:
[Please do not mail me a copy of your followup]
legalize+jeeves@mail.xmission.com (Richard) spake the secret code
thusly: Looks like string_ref is really close to what I was asking for; I'm going to see if I can rework that gist with string_ref.
Gist updated to use boost::string_ref: https://gist.github.com/LegalizeAdulthood/7b67968bd93fbd4f9dbb
So string_ref took over the place of the string_chain_segment that I had before.
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/uti... could help.
As near as I can tell, string_view is a class defined in namespace std that provides a string-like interface over a single char* string. I'm looking to provide an abstraction over a vector
. I can, of course, code one myself, but I'd rather not reinvent the wheel....
Thanks to Jan Herrmann for the pointer to string_ref.
Jan Herrmann