stl_numeric.h: Trivial formatting fixes.
2004-11-03 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_numeric.h: Trivial formatting fixes. From-SVN: r90024
This commit is contained in:
parent
34a133a808
commit
dae62ba8fd
@ -1,3 +1,7 @@
|
||||
2004-11-03 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/stl_numeric.h: Trivial formatting fixes.
|
||||
|
||||
2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/bits/c++config: Spacing.
|
||||
|
@ -203,13 +203,16 @@ namespace std
|
||||
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, _ValueType>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator,
|
||||
_ValueType>)
|
||||
__glibcxx_requires_valid_range(__first, __last);
|
||||
|
||||
if (__first == __last) return __result;
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
while (++__first != __last) {
|
||||
while (++__first != __last)
|
||||
{
|
||||
__value = __value + *__first;
|
||||
*++__result = __value;
|
||||
}
|
||||
@ -230,7 +233,8 @@ namespace std
|
||||
* @param result Output to write sums to.
|
||||
* @return Iterator pointing just beyond the values written to result.
|
||||
*/
|
||||
template<typename _InputIterator, typename _OutputIterator, typename _BinaryOperation>
|
||||
template<typename _InputIterator, typename _OutputIterator,
|
||||
typename _BinaryOperation>
|
||||
_OutputIterator
|
||||
partial_sum(_InputIterator __first, _InputIterator __last,
|
||||
_OutputIterator __result, _BinaryOperation __binary_op)
|
||||
@ -239,13 +243,16 @@ namespace std
|
||||
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, _ValueType>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator,
|
||||
_ValueType>)
|
||||
__glibcxx_requires_valid_range(__first, __last);
|
||||
|
||||
if (__first == __last) return __result;
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
while (++__first != __last) {
|
||||
while (++__first != __last)
|
||||
{
|
||||
__value = __binary_op(__value, *__first);
|
||||
*++__result = __value;
|
||||
}
|
||||
@ -272,13 +279,16 @@ namespace std
|
||||
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, _ValueType>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator,
|
||||
_ValueType>)
|
||||
__glibcxx_requires_valid_range(__first, __last);
|
||||
|
||||
if (__first == __last) return __result;
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
while (++__first != __last) {
|
||||
while (++__first != __last)
|
||||
{
|
||||
_ValueType __tmp = *__first;
|
||||
*++__result = __tmp - __value;
|
||||
__value = __tmp;
|
||||
@ -298,7 +308,8 @@ namespace std
|
||||
* @param result Output to write sums to.
|
||||
* @return Iterator pointing just beyond the values written to result.
|
||||
*/
|
||||
template<typename _InputIterator, typename _OutputIterator, typename _BinaryOperation>
|
||||
template<typename _InputIterator, typename _OutputIterator,
|
||||
typename _BinaryOperation>
|
||||
_OutputIterator
|
||||
adjacent_difference(_InputIterator __first, _InputIterator __last,
|
||||
_OutputIterator __result, _BinaryOperation __binary_op)
|
||||
@ -307,13 +318,16 @@ namespace std
|
||||
|
||||
// concept requirements
|
||||
__glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, _ValueType>)
|
||||
__glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator,
|
||||
_ValueType>)
|
||||
__glibcxx_requires_valid_range(__first, __last);
|
||||
|
||||
if (__first == __last) return __result;
|
||||
if (__first == __last)
|
||||
return __result;
|
||||
*__result = *__first;
|
||||
_ValueType __value = *__first;
|
||||
while (++__first != __last) {
|
||||
while (++__first != __last)
|
||||
{
|
||||
_ValueType __tmp = *__first;
|
||||
*++__result = __binary_op(__tmp, __value);
|
||||
__value = __tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user