From: Jonathan Wakely Date: Mon, 29 Apr 2019 13:31:50 +0000 (+0100) Subject: Adjust doxygen comment for std::generate_n X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f373ad68cfc35cc70ef909eb435669ae00693ca0;p=gcc.git Adjust doxygen comment for std::generate_n * include/bits/stl_algo.h (generate_n): Adjust doxygen comment. From-SVN: r270651 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b93f6707ad5..e7d5f59a9c4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2019-04-29 Jonathan Wakely + * 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 ae9bb8f14b0..b50c642f0e6 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