[libcxx-commits] [PATCH] D127159: [libc++] Simplify the char_traits specializations
Marshall Clow via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 6 15:57:59 PDT 2022
mclow.lists added inline comments.
================
Comment at: libcxx/include/__string/char_traits.h:207
+ char_type* move(char_type* __s1, const char_type* __s2, size_t __n) _NOEXCEPT {
+ std::copy_n(__s2, __n, __s1);
+ return __s1;
----------------
Does this handle overlapping ranges? The old code does.
https://eel.is/c++draft/char.traits.require says it has to handle overlapping ranges.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127159/new/
https://reviews.llvm.org/D127159
More information about the libcxx-commits
mailing list