We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cbc71 commit e5af25aCopy full SHA for e5af25a
include/gtl/phmap.hpp
@@ -2143,7 +2143,9 @@ class raw_hash_set {
2143
return *slot_;
2144
}
2145
2146
- // returns a pointer to the inserted value
+ // returns a pointer to the inserted value.
2147
+ // beware that the returned pointer is stable only for `node` hash map or sets. When using
2148
+ // a `flat` version, this pointer can be used immediately, but shouldn't be stored.
2149
template<class... Args>
2150
slot_type* operator()(Args&&... args) const {
2151
assert(*slot_);
0 commit comments