diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2009-06-10 02:14:32 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2009-06-10 02:14:32 +0000 |
commit | fd9380a6cd5157954fa95ffd8ba9924fea42b744 (patch) | |
tree | 19ec58ba1bdd053bb544fa11b6e811ff236619fc | |
parent | bf4066870d1a42226e711c1e941f14733f648f6d (diff) | |
download | gcc-fd9380a6cd5157954fa95ffd8ba9924fea42b744.zip gcc-fd9380a6cd5157954fa95ffd8ba9924fea42b744.tar.gz gcc-fd9380a6cd5157954fa95ffd8ba9924fea42b744.tar.bz2 |
move.h: Doxygen group fixes.
2009-06-09 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/move.h: Doxygen group fixes.
From-SVN: r148337
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/move.h | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9d3bf47..d8d9361 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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() diff --git a/libstdc++-v3/include/bits/move.h b/libstdc++-v3/include/bits/move.h index ef86c4d..25773e1 100644 --- a/libstdc++-v3/include/bits/move.h +++ b/libstdc++-v3/include/bits/move.h @@ -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 @@ _GLIBCXX_BEGIN_NAMESPACE(std) /** * @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> |