aboutsummaryrefslogtreecommitdiff
path: root/absl/container/flat_hash_set.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_set.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_set.h')
-rw-r--r--absl/container/flat_hash_set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/container/flat_hash_set.h b/absl/container/flat_hash_set.h
index e558b071..7b9e0060 100644
--- a/absl/container/flat_hash_set.h
+++ b/absl/container/flat_hash_set.h
@@ -35,6 +35,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"
@@ -117,7 +118,7 @@ struct FlatHashSetPolicy;
template <class T, class Hash = DefaultHashContainerHash<T>,
class Eq = DefaultHashContainerEq<T>,
class Allocator = std::allocator<T>>
-class flat_hash_set
+class ABSL_INTERNAL_ATTRIBUTE_OWNER flat_hash_set
: public absl::container_internal::raw_hash_set<
absl::container_internal::FlatHashSetPolicy<T>, Hash, Eq, Allocator> {
using Base = typename flat_hash_set::raw_hash_set;