]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: doc: Rectify referencing of non-existent type
authorTuur Martens <tuurmartens4@gmail.com>
Tue, 22 Jul 2025 08:02:53 +0000 (08:02 +0000)
committerTomasz Kamiński <tkaminsk@redhat.com>
Fri, 25 Jul 2025 12:29:02 +0000 (14:29 +0200)
The unordered_map header incorrectly refers to a non-existent template parameter
_Value in default template argument descriptions. They should refer to _Key instead.

This patch fixes these descriptions to match the actual template parameters.

libstdc++-v3/ChangeLog:

* include/bits/unordered_map.h: Rectify referencing of
non-existent type.

libstdc++-v3/include/bits/unordered_map.h

index fc07ffc998ca10f733c4d38a1105e82b9e21c5e9..cc9e2c4d5015cceb37032791fd3b66fc3a9db2a5 100644 (file)
@@ -91,9 +91,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
    *
    *  @tparam  _Key    Type of key objects.
    *  @tparam  _Tp     Type of mapped objects.
-   *  @tparam  _Hash   Hashing function object type, defaults to hash<_Value>.
+   *  @tparam  _Hash   Hashing function object type, defaults to hash<_Key>.
    *  @tparam  _Pred   Predicate function object type, defaults
-   *                   to equal_to<_Value>.
+   *                   to equal_to<_Key>.
    *  @tparam  _Alloc  Allocator type, defaults to
    *                   std::allocator<std::pair<const _Key, _Tp>>.
    *
@@ -1360,9 +1360,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
    *
    *  @tparam  _Key    Type of key objects.
    *  @tparam  _Tp     Type of mapped objects.
-   *  @tparam  _Hash   Hashing function object type, defaults to hash<_Value>.
+   *  @tparam  _Hash   Hashing function object type, defaults to hash<_Key>.
    *  @tparam  _Pred   Predicate function object type, defaults
-   *                   to equal_to<_Value>.
+   *                   to equal_to<_Key>.
    *  @tparam  _Alloc  Allocator type, defaults to
    *                   std::allocator<std::pair<const _Key, _Tp>>.
    *