[libcxx-commits] [PATCH] D74870: Split _LIBCPP_STRING_EXTERN_TEMPLATE_LIST up into a V1 and UNSTABLE version.
Martijn Vels via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 19 14:45:37 PST 2020
mvels updated this revision to Diff 245527.
mvels added a comment.
Inline basic_string::erase for fastpath where __n == npos
This change checks for the case where people want to erase a string to the end, i.e., __n == npos, and inlines the call if so.
This also demonstrates keeping the ABI intact for V1, but inlining the erase() method for unstable.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74870/new/
https://reviews.llvm.org/D74870
Files:
libcxx/include/__string
libcxx/include/string
libcxx/src/string.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74870.245527.patch
Type: text/x-patch
Size: 11120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200219/e95c81c9/attachment.bin>
More information about the libcxx-commits
mailing list