array (swap(array<>&, array<>&)): Use member swap.

2010-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/tr1_impl/array (swap(array<>&, array<>&)): Use member swap.
	
	* include/bits/stl_algo.h: Improve comment.

From-SVN: r157421
This commit is contained in:
Paolo Carlini 2010-03-13 12:47:09 +00:00 committed by Paolo Carlini
parent 929769f4ea
commit e962c1b0f4
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-03-13 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1_impl/array (swap(array<>&, array<>&)): Use member swap.
* include/bits/stl_algo.h: Improve comment.
2010-03-12 Benjamin Kosnik <bkoz@redhat.com>
* scripts/run_doxygen: Adjust.

View File

@ -4141,7 +4141,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
return std::make_pair(__min, __max);
}
// N2722 + fixes.
// N2722 + DR 915.
template<typename _Tp>
inline _Tp
min(initializer_list<_Tp> __l)

View File

@ -229,7 +229,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
template<typename _Tp, std::size_t _Nm>
inline void
swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two)
{ std::swap_ranges(__one.begin(), __one.end(), __two.begin()); }
{ __one.swap(__two); }
// Tuple interface to class template array [6.2.2.5].