This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] doxygen for move.h
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 9 Jun 2009 19:31:29 -0700
- Subject: [v3] doxygen for move.h
Missing algorithm grouping info for swap, amongst others.
tested x86/linux
-benjamin
2009-06-09 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/move.h: Doxygen group fixes.
Index: include/bits/move.h
===================================================================
--- include/bits/move.h (revision 148336)
+++ include/bits/move.h (working copy)
@@ -39,18 +39,25 @@
_GLIBCXX_BEGIN_NAMESPACE(std)
- // 20.2.2, forward/move
+ /// identity
template<typename _Tp>
struct identity
{
typedef _Tp type;
};
+ /// forward
template<typename _Tp>
inline _Tp&&
forward(typename std::identity<_Tp>::type&& __t)
{ return __t; }
+ /**
+ * @brief Move a value.
+ * @ingroup mutating_algorithms
+ * @param __t A thing of arbitrary type.
+ * @return Same, moved.
+ */
template<typename _Tp>
inline typename std::remove_reference<_Tp>::type&&
move(_Tp&& __t)
@@ -67,8 +74,9 @@
/**
* @brief Swaps two values.
- * @param a A thing of arbitrary type.
- * @param b Another thing of arbitrary type.
+ * @ingroup mutating_algorithms
+ * @param __a A thing of arbitrary type.
+ * @param __b Another thing of arbitrary type.
* @return Nothing.
*/
template<typename _Tp>
Index: ChangeLog
===================================================================
--- ChangeLog (revision 148336)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2009-06-09 Benjamin Kosnik <bkoz@redhat.com>
+
+ * include/bits/move.h: Doxygen group fixes.
+
2009-06-08 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.tcc (gamma_distribution<>::operator()