diff options
author | Patrick Palka <ppalka@redhat.com> | 2025-01-31 15:53:10 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2025-01-31 15:53:10 -0500 |
commit | ee797739606ce9b8cf6ebb0236977861e49aa0d1 (patch) | |
tree | 4f5d58df579dea134fcebd3b55a2834d73147b8b /gcc | |
parent | d6418fe22684f9335474d1fd405ade45954c069d (diff) | |
download | gcc-ee797739606ce9b8cf6ebb0236977861e49aa0d1.zip gcc-ee797739606ce9b8cf6ebb0236977861e49aa0d1.tar.gz gcc-ee797739606ce9b8cf6ebb0236977861e49aa0d1.tar.bz2 |
libstdc++: Fix return value of vector::insert_range
In some cases we're wrongly returning an iterator to (one past) the last
element inserted instead of to the first element inserted.
libstdc++-v3/ChangeLog:
* include/bits/stl_bvector.h (vector<bool>::insert_range):
Consistently return an iterator pointing to the first element
inserted.
* include/bits/vector.tcc (vector::insert_range): Likewise.
* testsuite/23_containers/vector/bool/modifiers/insert/insert_range.cc:
Verify insert_range return values.
* testsuite/23_containers/vector/modifiers/insert/insert_range.cc:
Likewise.
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions