mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
stl_algo.h: Minor cosmetic reformattings.
2003-09-30 Paolo Carlini <pcarlini@unitus.it> * include/bits/stl_algo.h: Minor cosmetic reformattings. From-SVN: r71950
This commit is contained in:
parent
d186e676b6
commit
ae7c3ba55f
@ -1,3 +1,7 @@
|
||||
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/bits/stl_algo.h: Minor cosmetic reformattings.
|
||||
|
||||
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/bits/stl_algo.h (search_n): Tweak, to spare the
|
||||
|
@ -1263,13 +1263,13 @@ namespace std
|
||||
_ForwardIterator
|
||||
unique(_ForwardIterator __first, _ForwardIterator __last)
|
||||
{
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_Mutable_ForwardIteratorConcept<_ForwardIterator>)
|
||||
__glibcxx_function_requires(_EqualityComparableConcept<
|
||||
typename iterator_traits<_ForwardIterator>::value_type>)
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_Mutable_ForwardIteratorConcept<_ForwardIterator>)
|
||||
__glibcxx_function_requires(_EqualityComparableConcept<
|
||||
typename iterator_traits<_ForwardIterator>::value_type>)
|
||||
|
||||
__first = std::adjacent_find(__first, __last);
|
||||
return std::unique_copy(__first, __last, __first);
|
||||
__first = std::adjacent_find(__first, __last);
|
||||
return std::unique_copy(__first, __last, __first);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1349,10 +1349,10 @@ namespace std
|
||||
inline void
|
||||
reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
|
||||
{
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_Mutable_BidirectionalIteratorConcept<
|
||||
_BidirectionalIterator>)
|
||||
std::__reverse(__first, __last, std::__iterator_category(__first));
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_Mutable_BidirectionalIteratorConcept<
|
||||
_BidirectionalIterator>)
|
||||
std::__reverse(__first, __last, std::__iterator_category(__first));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user