https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109229
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is how all standard algorithms that take an initial value work.
redi at gcc dot gnu.org via Gcc-bugs Tue, 21 Mar 2023 03:27:59 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109229
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is how all standard algorithms that take an initial value work.