aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-04-29 14:31:50 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-04-29 14:31:50 +0100
commitf373ad68cfc35cc70ef909eb435669ae00693ca0 (patch)
tree87c2dddf97d46b7e056c1d0475a141552d2a13f1
parent81912fb385a91073efd327354fc01f17641a9c6b (diff)
downloadgcc-f373ad68cfc35cc70ef909eb435669ae00693ca0.zip
gcc-f373ad68cfc35cc70ef909eb435669ae00693ca0.tar.gz
gcc-f373ad68cfc35cc70ef909eb435669ae00693ca0.tar.bz2
Adjust doxygen comment for std::generate_n
* include/bits/stl_algo.h (generate_n): Adjust doxygen comment. From-SVN: r270651
-rw-r--r--libstdc++-v3/ChangeLog2
-rw-r--r--libstdc++-v3/include/bits/stl_algo.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b93f670..e7d5f59 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h
index ae9bb8f..b50c642 100644
--- a/libstdc++-v3/include/bits/stl_algo.h
+++ b/libstdc++-v3/include/bits/stl_algo.h
@@ -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