[libcxx-commits] [libcxx] [libc++] Optimize std::swap of locales (PR #209760)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 15 22:07:08 PDT 2026
================
@@ -143,8 +143,14 @@ private:
friend bool has_facet(const locale&) _NOEXCEPT;
template <class _Facet>
friend const _Facet& use_facet(const locale&);
+
+ friend void swap(locale&, locale&);
};
+inline void swap(locale& __lhs, locale& __rhs) {
----------------
philnik777 wrote:
The standard doesn't allow for a move constructor.
https://github.com/llvm/llvm-project/pull/209760
More information about the libcxx-commits
mailing list