
30 Jan
2013
30 Jan
'13
2:22 p.m.
Hi, 2013/1/30 Mathias Gaunard <mathias.gaunard@ens-lyon.org>:
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