[libcxx-commits] [PATCH] D154454: [libc++] Implement istringstream members of P0408R7 (Efficient Access to basic_stringbuf's Buffer)
Piotr Fusik via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 4 11:46:49 PDT 2023
pfusik marked an inline comment as done.
pfusik added inline comments.
================
Comment at: libcxx/test/std/input.output/string.streams/istringstream/istringstream.members/str.move.pass.cpp:32
+ assert(s == STR("testing"));
+ assert(ss.view().empty());
+ }
----------------
Mordante wrote:
> Is the moved from state specified?
It is:
> 29.8.3.4 Member functions [istringstream.members]
> basic_string<charT,traits,Allocator> str() &&;
> Effects: Equivalent to: return std::move(*rdbuf()).str();
> 29.8.2.4 Member functions [stringbuf.members]
> basic_string<charT, traits, Allocator> str() &&;
> Postconditions: The underlying character sequence buf is empty
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154454/new/
https://reviews.llvm.org/D154454
More information about the libcxx-commits
mailing list