]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix documentation for return values of copy algos
authorJonathan Wakely <jwakely@redhat.com>
Mon, 12 Oct 2020 17:14:01 +0000 (18:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 12 Oct 2020 17:14:01 +0000 (18:14 +0100)
commitae3967caffea9c9b9f0f9dfe42a4f59e715e1a61
treed59b19e0c1a70ae3c34c2f59cfbc5f7f586b020a
parent82118acc18e416b9c82c82ce7737f5e6246d6574
libstdc++: Fix documentation for return values of copy algos

The doxygen comments for these algos all incorrectly claim to use
(first - last) as the difference from the start of the output range to
the return value. As reported on the mailing list by Johannes Choo, it
should be (last - first).

libstdc++-v3/ChangeLog:

* include/bits/stl_algobase.h (copy, move, copy_backward)
(move_backward): Fix documentation for returned iterator.
libstdc++-v3/include/bits/stl_algobase.h