[libcxx-commits] [PATCH] D157776: [libc++] Eliminate extra allocations from `std::move(oss).str()`

Amirreza Ashouri via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 18 08:53:57 PDT 2023


AMP999 updated this revision to Diff 551534.
AMP999 added a comment.

Addressed review comments, removed string(string&&, pos, n, alloc) constructor from C++20 mode again.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157776/new/

https://reviews.llvm.org/D157776

Files:
  libcxx/include/sstream
  libcxx/include/string
  libcxx/test/std/input.output/string.streams/istringstream/istringstream.members/str.allocator_propagation.pass.cpp
  libcxx/test/std/input.output/string.streams/istringstream/istringstream.members/str.move.pass.cpp
  libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.members/str.allocator_propagation.pass.cpp
  libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.members/str.move.pass.cpp
  libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/str.move.pass.cpp
  libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/str.pass.cpp
  libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/view.pass.cpp
  libcxx/test/std/input.output/string.streams/stringstream/stringstream.members/str.allocator_propagation.pass.cpp
  libcxx/test/std/input.output/string.streams/stringstream/stringstream.members/str.move.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157776.551534.patch
Type: text/x-patch
Size: 29138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230818/1440a21b/attachment-0001.bin>


More information about the libcxx-commits mailing list