Adjust doxygen comment for std::generate_n
authorJonathan Wakely <jwakely@redhat.com>
Mon, 29 Apr 2019 13:31:50 +0000 (14:31 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 29 Apr 2019 13:31:50 +0000 (14:31 +0100)
* include/bits/stl_algo.h (generate_n): Adjust doxygen comment.

From-SVN: r270651

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

index b93f6707ad53bef33e4e5e207ad7a1f841a62f3a..e7d5f59a9c46470c4b1560afacb485094c2aba06 100644 (file)
@@ -1,5 +1,7 @@
 2019-04-29  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
+
        * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
        _GLIBCXX_NOEXCEPT_IF to simplify declarations.
 
index ae9bb8f14b0a82af214ceb94f0bb5c2a3644da1d..b50c642f0e6696c32c262abe949f8ec90764483d 100644 (file)
@@ -4433,7 +4433,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
    *  Performs the assignment @c *i = @p __gen() for each @c i in the range
    *  @p [__first,__first+__n).
    *
-   * If @p __n is negative, the function does nothing.
+   * If @p __n is negative, the function does nothing and returns @p __first.
   */
   // _GLIBCXX_RESOLVE_LIB_DEFECTS
   // DR 865. More algorithms that throw away information