Boost logo

Boost :

Subject: Re: [boost] [string_ref] type erasure to support arbitrary strings
From: Andreas Pokorny (andreas.pokorny_at_[hidden])
Date: 2013-01-30 09:22:38


Hi,

2013/1/30 Mathias Gaunard <mathias.gaunard_at_[hidden]>:
>
> In practice strings are always stored contiguously, whatever the string type
> (std::string, Qt or whatever).
> Making it work with arbitrary forward iterators would have a huge
> unnecessary overhead.

Well I expect that facility to be only used to give the callee access
to the string in the expected encoding.
Can the current proposal of string_ref capture QtStrings without copying?

> There might be a slight use case for chunked strings, but it's definitely
> not necessary to go the arbitrary forward iterator route.

Thought thats all those nice string algorithms need.

regards
Andreas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk