aboutsummaryrefslogtreecommitdiff
path: root/absl/container/flat_hash_map.h
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2024-06-12 08:13:58 -0700
committerCopybara-Service <copybara-worker@google.com>2024-06-12 08:14:45 -0700
commit567ebd0540f4e56d125491e71e2727d8ab5458e0 (patch)
treeee113945348f45a35b4f236abacf769227632c4d /absl/container/flat_hash_map.h
parenta0889af0a23030e6bb27c6c7241bade7e59cb763 (diff)
downloadabseil-567ebd0540f4e56d125491e71e2727d8ab5458e0.tar.gz
abseil-567ebd0540f4e56d125491e71e2727d8ab5458e0.tar.bz2
abseil-567ebd0540f4e56d125491e71e2727d8ab5458e0.zip
Add ABSL_INTERNAL_ATTRIBUTE_VIEW and ABSL_INTERNAL_ATTRIBUTE_OWNER attributes to types in Abseil
PiperOrigin-RevId: 642619703 Change-Id: I8d2e423a3c7f40709d0e8c82cac0395c75d601cf
Diffstat (limited to 'absl/container/flat_hash_map.h')
-rw-r--r--absl/container/flat_hash_map.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/absl/container/flat_hash_map.h b/absl/container/flat_hash_map.h
index aa2c5c8c..1c43e92d 100644
--- a/absl/container/flat_hash_map.h
+++ b/absl/container/flat_hash_map.h
@@ -36,6 +36,7 @@
#include <utility>
#include "absl/algorithm/container.h"
+#include "absl/base/attributes.h"
#include "absl/base/macros.h"
#include "absl/container/hash_container_defaults.h"
#include "absl/container/internal/container_memory.h"
@@ -121,9 +122,10 @@ struct FlatHashMapPolicy;
template <class K, class V, class Hash = DefaultHashContainerHash<K>,
class Eq = DefaultHashContainerEq<K>,
class Allocator = std::allocator<std::pair<const K, V>>>
-class flat_hash_map : public absl::container_internal::raw_hash_map<
- absl::container_internal::FlatHashMapPolicy<K, V>,
- Hash, Eq, Allocator> {
+class ABSL_INTERNAL_ATTRIBUTE_OWNER flat_hash_map
+ : public absl::container_internal::raw_hash_map<
+ absl::container_internal::FlatHashMapPolicy<K, V>, Hash, Eq,
+ Allocator> {
using Base = typename flat_hash_map::raw_hash_map;
public: