Files
cppdraft_translate/cppdraft/associative/reqmts/except.md
2025-10-25 03:02:53 +03:00

1.2 KiB

[associative.reqmts.except]

23 Containers library [containers]

23.2 Requirements [container.requirements]

23.2.7 Associative containers [associative.reqmts]

23.2.7.2 Exception safety guarantees [associative.reqmts.except]

1

#

For associative containers, no clear() function throws an exception.

erase(k) does not throw an exception unless that exception is thrown by the container's Compare object (if any).

2

#

For associative containers, if an exception is thrown by any operation from within an insert or emplace function inserting a single element, the insertion has no effect.

3

#

For associative containers, no swap function throws an exception unless that exception is thrown by the swap of the container's Compare object (if any).