https://gcc.gnu.org/g:0c8781cc71134417257502618e0630e85a609523

commit r16-2514-g0c8781cc71134417257502618e0630e85a609523
Author: Tuur Martens <tuurmarte...@gmail.com>
Date:   Tue Jul 22 08:02:53 2025 +0000

    libstdc++: doc: Rectify referencing of non-existent type
    
    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.

Diff:
---
 libstdc++-v3/include/bits/unordered_map.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libstdc++-v3/include/bits/unordered_map.h 
b/libstdc++-v3/include/bits/unordered_map.h
index fc07ffc998ca..cc9e2c4d5015 100644
--- a/libstdc++-v3/include/bits/unordered_map.h
+++ b/libstdc++-v3/include/bits/unordered_map.h
@@ -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>>.
    *

Reply via email to