diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2011-12-15 09:49:59 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2011-12-15 09:49:59 +0000 |
commit | d36971dd86653e81a8dba44f34f777c538b45631 (patch) | |
tree | dad15a6ce082690ed734ef71284cdd4fa36be0a7 | |
parent | 2e537cdecbdc4180821b0baca1af4a716bd0f1e4 (diff) | |
download | gcc-d36971dd86653e81a8dba44f34f777c538b45631.zip gcc-d36971dd86653e81a8dba44f34f777c538b45631.tar.gz gcc-d36971dd86653e81a8dba44f34f777c538b45631.tar.bz2 |
re PR libstdc++/51540 (doxygen documentation for partial_sum misleading)
PR libstdc++/51540
* include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments.
From-SVN: r182359
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_numeric.h | 17 |
2 files changed, 14 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8a46f1c..e1d5024 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> + + PR libstdc++/51540 + * include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments. + 2011-12-12 Paolo Carlini <paolo.carlini@oracle.com> Revert: diff --git a/libstdc++-v3/include/bits/stl_numeric.h b/libstdc++-v3/include/bits/stl_numeric.h index 085fe93..3b97d63 100644 --- a/libstdc++-v3/include/bits/stl_numeric.h +++ b/libstdc++-v3/include/bits/stl_numeric.h @@ -222,11 +222,11 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO /** * @brief Return list of partial sums * - * Accumulates the values in the range [first,last) using operator+(). + * Accumulates the values in the range [first,last) using the @c + operator. * As each successive input value is added into the total, that partial sum - * is written to @p __result. Therefore, the first value in result is the - * first value of the input, the second value in result is the sum of the - * first and second input values, and so on. + * is written to @p __result. Therefore, the first value in @p __result is + * the first value of the input, the second value in @p __result is the sum + * of the first and second input values, and so on. * * @param __first Start of input range. * @param __last End of input range. @@ -261,15 +261,16 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO /** * @brief Return list of partial sums * - * Accumulates the values in the range [first,last) using operator+(). + * Accumulates the values in the range [first,last) using @p __binary_op. * As each successive input value is added into the total, that partial sum - * is written to @p __result. Therefore, the first value in result is the - * first value of the input, the second value in result is the sum of the - * first and second input values, and so on. + * is written to @p __result. Therefore, the first value in @p __result is + * the first value of the input, the second value in @p __result is the sum + * of the first and second input values, and so on. * * @param __first Start of input range. * @param __last End of input range. * @param __result Output sum. + * @param __binary_op Function object. * @return Iterator pointing just beyond the values written to __result. */ template<typename _InputIterator, typename _OutputIterator, |