29 Dec
2016
29 Dec
'16
8:56 a.m.
On Thu, Dec 29, 2016 at 1:43 AM, Nat Goodspeed
I think what's desired here is a two-pass approach in which append() or concat() or whatever first figures out the final length required, allocates that much storage, then appends into it with no further expansion.
When we say it should understand two kinds of string_view, etc., I assume that the catch-all case for each arg would be "anything that can be treated as a range of char_type."
Sounds good.. but if you've got an input range (not readable twice) then you can no longer apply the two-pass optimization. The interface certainly allows it. -- Olaf