Skip to content

Commit ec5eb23

Browse files
authored
Update libcxx/include/__vector/vector.h
1 parent 8ab512d commit ec5eb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__vector/vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ vector<_Tp, _Allocator>::__insert_with_sentinel(const_iterator __position, _Inpu
12601260
auto __guard = std::__make_exception_guard(
12611261
_AllocatorDestroyRangeReverse<allocator_type, pointer>(__alloc_, __old_last, this->__end_));
12621262
__v.__construct_at_end_with_sentinel(std::move(__first), std::move(__last));
1263-
__split_buffer<value_type, allocator_type&> __merged(__recommend(size() + __v.size()), __off, __alloc_);
1263+
__split_buffer<value_type, allocator_type&> __merged(__recommend(size() + __v.size()), __off, __alloc_); // has `__off` positions available at the front
12641264
std::__uninitialized_allocator_relocate(
12651265
__alloc_, std::__to_address(__old_last), std::__to_address(this->__end_), std::__to_address(__merged.__end_));
12661266
__guard.__complete(); // Release the guard once objects in [__old_last_, __end_) have been successfully relocated.

0 commit comments

Comments
 (0)