]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/51540 (doxygen documentation for partial_sum misleading)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 18 Dec 2011 22:33:15 +0000 (22:33 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 18 Dec 2011 22:33:15 +0000 (22:33 +0000)
PR libstdc++/51540
* include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments.

From-SVN: r182461

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_numeric.h

index 1c4cbfa9f0fa2dda85479d58d15dd2807108e2f0..62a2d4c18e95b030d734dcb6d181dc49f31b959b 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/51540
+       * include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments.
+
 2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
 
        * configure: Regenerate.
index 1b6998d97354353297fb357319ed4af58ab1709d..6cbc6d2fe08d52247ef5c81ae9c2114d9b7cde3f 100644 (file)
@@ -222,10 +222,10 @@ _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 @a result.  Therefore, the first value in result is the
-   *  first value of the input, the second value in result is the sum of the
+   *  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.
@@ -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 @a result.  Therefore, the first value in result is the
-   *  first value of the input, the second value in result is the sum of the
+   *  is written to @a 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 to write sums to.
+   *  @param  binary_op  Function object.
    *  @return  Iterator pointing just beyond the values written to result.
    */
   template<typename _InputIterator, typename _OutputIterator,