[libcxx-commits] [PATCH] D149826: [libc++][ranges] Implement the changes to vector from P1206 (`ranges::to`):

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 4 16:39:52 PDT 2023


var-const added inline comments.


================
Comment at: libcxx/include/vector:1481
             __construct_at_end(__mid, __last, __new_size - size());
+        }
         else
----------------
ldionne wrote:
> We still need a test to catch the issue that went uncaught in D142335.
Added a test case to `test/std/containers/sequences/vector/vector.modifiers/assign_range.pass.cpp`. The case is that the range being assigned is longer than the vector but within the vector's capacity.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149826



More information about the libcxx-commits mailing list