aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2025-01-31 15:53:10 -0500
committerPatrick Palka <ppalka@redhat.com>2025-01-31 15:53:10 -0500
commitee797739606ce9b8cf6ebb0236977861e49aa0d1 (patch)
tree4f5d58df579dea134fcebd3b55a2834d73147b8b /gcc
parentd6418fe22684f9335474d1fd405ade45954c069d (diff)
downloadgcc-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