aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-11-01 12:46:26 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-11-01 20:36:53 +0000
commitdb798ee38a3f81eff207e889c36c727bb370112c (patch)
tree60ae764280adc0d98e45b6fde4488937aa7142db
parent7a4fced2b122bde47fed2d99fb8e3cf197f9c46f (diff)
downloadgcc-db798ee38a3f81eff207e889c36c727bb370112c.zip
gcc-db798ee38a3f81eff207e889c36c727bb370112c.tar.gz
gcc-db798ee38a3f81eff207e889c36c727bb370112c.tar.bz2
libstdc++: Minor comment improvements in <bits/hashtable.h>
libstdc++-v3/ChangeLog: * include/bits/hashtable.h: Improve comments.
-rw-r--r--libstdc++-v3/include/bits/hashtable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/hashtable.h b/libstdc++-v3/include/bits/hashtable.h
index f1a5490..47321a9 100644
--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -1019,7 +1019,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
iterator
erase(const_iterator);
- // LWG 2059.
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
+ // 2059. C++0x ambiguity problem with map::erase
iterator
erase(iterator __it)
{ return erase(const_iterator(__it)); }
@@ -1041,7 +1042,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// DR 1189.
// reserve, if present, comes from _Rehash_base.
-#if __glibcxx_node_extract // >= C++17
+#if __glibcxx_node_extract // >= C++17 && HOSTED
/// Re-insert an extracted node into a container with unique keys.
insert_return_type
_M_reinsert_node(node_type&& __nh)