mirror of git://gcc.gnu.org/git/gcc.git
re PR libstdc++/58357 (In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle).)
PR libstdc++/58357 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2. * include/bits/stl_algo.h (__rotate, rotate): Likewise. From-SVN: r220823
This commit is contained in:
parent
1c10e0cecc
commit
87839f22d2
|
|
@ -1,3 +1,9 @@
|
|||
2015-02-19 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/58357
|
||||
* include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
|
||||
* include/bits/stl_algo.h (__rotate, rotate): Likewise.
|
||||
|
||||
2015-02-19 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
PR testsuite/65093
|
||||
|
|
|
|||
|
|
@ -530,9 +530,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
_OIter
|
||||
reverse_copy(_BIter, _BIter, _OIter);
|
||||
|
||||
template<typename _FIter>
|
||||
_FIter
|
||||
rotate(_FIter, _FIter, _FIter);
|
||||
inline namespace _V2
|
||||
{
|
||||
template<typename _FIter>
|
||||
_FIter
|
||||
rotate(_FIter, _FIter, _FIter);
|
||||
}
|
||||
|
||||
template<typename _FIter, typename _OIter>
|
||||
_OIter
|
||||
|
|
|
|||
|
|
@ -1237,6 +1237,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
return __m;
|
||||
}
|
||||
|
||||
inline namespace _V2
|
||||
{
|
||||
|
||||
/// This is a helper function for the rotate algorithm.
|
||||
template<typename _ForwardIterator>
|
||||
_ForwardIterator
|
||||
|
|
@ -1438,6 +1441,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
std::__iterator_category(__first));
|
||||
}
|
||||
|
||||
} // namespace _V2
|
||||
|
||||
/**
|
||||
* @brief Copy a sequence, rotating its elements.
|
||||
* @ingroup mutating_algorithms
|
||||
|
|
|
|||
Loading…
Reference in New Issue