mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 06:50:24 +08:00
move.h: Doxygen group fixes.
2009-06-09 Benjamin Kosnik <bkoz@redhat.com> * include/bits/move.h: Doxygen group fixes. From-SVN: r148337
This commit is contained in:
parent
bf4066870d
commit
fd9380a6cd
@ -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()
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user