From: Will Hawkins
Until now operator+(char*, string) and operator+(string, char*) had
different performance characteristics. The former required a single
memory allocation and the latter required two. This patch makes the
performance equal.
libstdc++-v3/ChangeLog:
* libstdc++-v3/include
A revision of the original patch -- based on the feedback from Jonathan -- that
removes the `inline` specifier is attached.
From: Will Hawkins
Until now operator+(char*, string) and operator+(string, char*) had
different performance characteristics. The former required a single
memory allocation and the latter required two. This patch makes the
performance equal.
libstdc++-v3/ChangeLog:
* libstdc++-v3/include
After consultation with Jonathan, we realized that there was a missed
optimization opportunity in the implementation of the various forms of
operator+ for string.
operator+(char *, string) required a single allocation but
operator+(string, char*) required two. This patch attempts to change that
a