[libcxx-commits] [PATCH] D73743: Inline basic_string::erase for fastpath where __n == npos
Martijn Vels via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 30 13:43:02 PST 2020
mvels created this revision.
mvels added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, christof.
Herald added a project: libc++.
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
https://reviews.llvm.org/D73743
Files:
libcxx/include/__string
libcxx/include/string
libcxx/src/string.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73743.241575.patch
Type: text/x-patch
Size: 4613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200130/ad1d999c/attachment-0001.bin>
More information about the libcxx-commits
mailing list