[gcc r16-8424] libstdc++: Minor tweak to Doxygen comment for std::pair
Jonathan Wakely
redi@gcc.gnu.org
Thu Apr 2 13:26:33 GMT 2026
https://gcc.gnu.org/g:d61f795de98e282a22748b0fa6d10a38d98f2bdb
commit r16-8424-gd61f795de98e282a22748b0fa6d10a38d98f2bdb
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Apr 1 15:22:14 2026 +0100
libstdc++: Minor tweak to Doxygen comment for std::pair
It doesn't necessarily hold objects, it can hold references too.
libstdc++-v3/ChangeLog:
* include/bits/stl_pair.h (pair): Adjust Doxygen comment.
Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Diff:
---
libstdc++-v3/include/bits/stl_pair.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libstdc++-v3/include/bits/stl_pair.h b/libstdc++-v3/include/bits/stl_pair.h
index aa49f87fc137..f08b2714a4fe 100644
--- a/libstdc++-v3/include/bits/stl_pair.h
+++ b/libstdc++-v3/include/bits/stl_pair.h
@@ -292,10 +292,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// @endcond
/**
- * @brief Struct holding two objects of arbitrary type.
+ * @brief Struct holding two objects (or references) of arbitrary type.
*
- * @tparam _T1 Type of first object.
- * @tparam _T2 Type of second object.
+ * @tparam _T1 Type of the `first` member.
+ * @tparam _T2 Type of the `second` member.
*
* <https://gcc.gnu.org/onlinedocs/libstdc++/manual/utilities.html>
*
More information about the Libstdc++-cvs
mailing list