
16 Nov
2012
16 Nov
'12
1:04 p.m.
On Fri, Nov 16, 2012 at 2:00 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
On 16/11/12 06:30, Jeffrey Lee Hellrung, Jr. wrote:
How is this different from (say) contiguous_range< char > / contiguous_range< char const > ? I can imagine a contiguous_range<T> that wraps a pair of T*s, which would seem to be a simple generalization of your proposed string_ref.
It isn't. The only difference is that string_ref provides an interface for substring operations, similar to std::string but without returning copies of the data, hence the string in the name.
That'd be better as a non-member function, wouldn't it? -- Olaf