aboutsummaryrefslogtreecommitdiff
path: root/absl/container/flat_hash_map.h
diff options
context:
space:
mode:
authorEvan Brown <ezb@google.com>2024-06-20 09:10:33 -0700
committerCopybara-Service <copybara-worker@google.com>2024-06-20 09:11:33 -0700
commite181410198b58b8dffe6e62e24ad56e5d78e2790 (patch)
treed253b1a80c2189c1f991dc03da08743e40f9984f /absl/container/flat_hash_map.h
parent69195d5bd2416a7224416887c78353ee8edf67ee (diff)
downloadabseil-e181410198b58b8dffe6e62e24ad56e5d78e2790.tar.gz
abseil-e181410198b58b8dffe6e62e24ad56e5d78e2790.tar.bz2
abseil-e181410198b58b8dffe6e62e24ad56e5d78e2790.zip
Document that swisstable and b-tree containers are not exception-safe.
For performance reasons, these containers are optimized for the case in which allocations/deallocations/comparisons/hashers can't throw exceptions. PiperOrigin-RevId: 645054627 Change-Id: I99be651b26f5bbb87da6ef246b92b20a375224d7
Diffstat (limited to 'absl/container/flat_hash_map.h')
-rw-r--r--absl/container/flat_hash_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/container/flat_hash_map.h b/absl/container/flat_hash_map.h
index 1c43e92d..3eae404f 100644
--- a/absl/container/flat_hash_map.h
+++ b/absl/container/flat_hash_map.h
@@ -26,6 +26,8 @@
//
// In most cases, your default choice for a hash map should be a map of type
// `flat_hash_map`.
+//
+// `flat_hash_map` is not exception-safe.
#ifndef ABSL_CONTAINER_FLAT_HASH_MAP_H_
#define ABSL_CONTAINER_FLAT_HASH_MAP_H_