[libcxx-commits] [PATCH] D147741: [libc++, std::vector] call the optimized version of __uninitialized_allocator_copy for trivial types

Aditya Kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 15 17:05:02 PDT 2023


hiraditya marked an inline comment as done.
hiraditya added inline comments.


================
Comment at: libcxx/include/__memory/uninitialized_algorithms.h:599
+#else
+    return std::__rewrap_iter(__first2, std::__uninitialized_allocator_copy_impl(__alloc, std::__unwrap_iter(__first1), std::__unwrap_iter(__last1), std::__unwrap_iter(__first2)));
+#endif
----------------
philnik wrote:
> You should be able to use `__unwrap_range` regardless of C++ version.
i see! fixed it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147741/new/

https://reviews.llvm.org/D147741



More information about the libcxx-commits mailing list