[libcxx-commits] [libcxx] [libc++] Optimize vector growing of trivially relocatable types (PR #76657)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 11 09:59:29 PST 2024
================
@@ -45,6 +47,10 @@ class _LIBCPP_TEMPLATE_VIS allocator;
template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
class _LIBCPP_TEMPLATE_VIS basic_string;
+// TODO: This could be extended to also allow custom allocators and possibly custom chars and char traits
+template <class _CharT>
----------------
ldionne wrote:
As mentioned in the live review, I think we can also support arbitrary char traits at no additional cost here. With a comment explaining why this is all good.
https://github.com/llvm/llvm-project/pull/76657
More information about the libcxx-commits
mailing list