From: Tuur Martens Date: Tue, 22 Jul 2025 08:02:53 +0000 (+0000) Subject: libstdc++: doc: Rectify referencing of non-existent type X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c8781cc71134417257502618e0630e85a609523;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/include/bits/unordered_map.h b/libstdc++-v3/include/bits/unordered_map.h index fc07ffc998c..cc9e2c4d501 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>. * @@ -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>. *