diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-11-01 22:20:22 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-11-13 20:21:40 +0000 |
commit | d2970e86c4de89b4ba38fa935f1be65681970c69 (patch) | |
tree | 216001b8e2640deb29ded8e25fc4a1f51ca66d32 /libcpp | |
parent | e717c322c6ee21bd5d9cf9373dcd9b4e8ba3312f (diff) | |
download | gcc-d2970e86c4de89b4ba38fa935f1be65681970c69.zip gcc-d2970e86c4de89b4ba38fa935f1be65681970c69.tar.gz gcc-d2970e86c4de89b4ba38fa935f1be65681970c69.tar.bz2 |
libstdc++: Use RAII in _Hashtable
Use scoped guard types to clean up if an exception is thrown. This
allows some try-catch blocks to be removed.
libstdc++-v3/ChangeLog:
* include/bits/hashtable.h (operator=(const _Hashtable&)): Use
RAII instead of try-catch.
(_M_assign(_Ht&&, _NodeGenerator&)): Likewise.
Reviewed-by: François Dumont <fdumont@gcc.gnu.org>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions