diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-02-26 13:09:02 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-02-28 11:27:46 +0000 |
commit | 2d8cd712b17e88f2935237665799d0c72b7ce1b6 (patch) | |
tree | 81b6f4a53538dc96648db89050f25eeacabc66cd /gcc/function.h | |
parent | cf918498ab7c717e3c6badab44340117af53ec35 (diff) | |
download | gcc-2d8cd712b17e88f2935237665799d0c72b7ce1b6.zip gcc-2d8cd712b17e88f2935237665799d0c72b7ce1b6.tar.gz gcc-2d8cd712b17e88f2935237665799d0c72b7ce1b6.tar.bz2 |
libstdc++: Add more nodiscard uses in <vector>
Add [[nodiscard]] to vector::at and to comparison operators.
libstdc++-v3/ChangeLog:
* include/bits/stl_bvector.h (vector<bool, A>::at): Add
nodiscard.
* include/bits/stl_vector.h (vector<T, A>::at): Likewise.
(operator==, operator<=>, operator<, operator!=, operator>)
(operator<=, operator>=): Likewise.
* include/debug/vector (operator==, operator<=>, operator<)
(operator!=, operator>, operator<=, operator>=): Likewise.
* testsuite/23_containers/vector/nodiscard.cc: New test.
Diffstat (limited to 'gcc/function.h')
0 files changed, 0 insertions, 0 deletions