[all-commits] [llvm/llvm-project] 8db33f: [libc++] Fix vector::append_range growing before t...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Mar 5 09:27:05 PST 2026
Branch: refs/heads/release/22.x
Home: https://github.com/llvm/llvm-project
Commit: 8db33f635a4605d5072c3741fe6e6ac9f9a56bcf
https://github.com/llvm/llvm-project/commit/8db33f635a4605d5072c3741fe6e6ac9f9a56bcf
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M libcxx/include/__vector/vector.h
M libcxx/test/std/containers/sequences/vector/vector.modifiers/append_range.pass.cpp
Log Message:
-----------
[libc++] Fix vector::append_range growing before the capacity is reached (#183264)
Currently `vector::append_range` grows even when appending a number of
elements that is exactly equal to its spare capacity, which is
guaranteed by the standard to _not_ happen.
Fixes #183256
(cherry picked from commit d6fcf47a893475f6f3dbcace29093297b7e9f366)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list