Skip to content

Commit e5af25a

Browse files
committed
Add comment.
1 parent 81cbc71 commit e5af25a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/gtl/phmap.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,9 @@ class raw_hash_set {
21432143
return *slot_;
21442144
}
21452145

2146-
// returns a pointer to the inserted value
2146+
// 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.
21472149
template<class... Args>
21482150
slot_type* operator()(Args&&... args) const {
21492151
assert(*slot_);

0 commit comments

Comments
 (0)