[libcxx-commits] [libcxx] [libc++] Add __uninitialized_allocator_{fill, value_construct, move} and use them in vector (PR #207500)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 8 08:01:56 PDT 2026


================
@@ -528,6 +552,20 @@ inline const bool __allocator_has_trivial_move_construct_v = !__has_construct_v<
 template <class _Type>
 inline const bool __allocator_has_trivial_move_construct_v<allocator<_Type>, _Type> = true;
 
+template <class _Alloc, class _InIter, class _Sent, class _OutIter>
+_LIBCPP_CONSTEXPR_SINCE_CXX20 __in_out_result<_InIter, _OutIter>
+__uninitialized_allocator_move(_Alloc& __alloc, _InIter __first, _Sent __last, _OutIter __result) {
----------------
ldionne wrote:

Since there's a behavior change, we should have a libc++ specific test about it.

https://github.com/llvm/llvm-project/pull/207500


More information about the libcxx-commits mailing list