On Thu, 2018-08-30, Fraser Ross wrote:
> In the standard it says "Copies elements in the range [first, last) into
> the range [result - (last-first), result) starting from last - 1 and
> proceeding to first."
>
> I think it should say proceeding to first - 1. first - 1 would refer to
> the iterator one past the end. The same mistake is made with
> move_backward.
Let's assume the range is [2, 6), i.e. [2, 3, 4, 5].
Then it should copy 5, 4, 3, 2, i.e.
starting from 5 = 6-1 = last-1
proceeding to 2 = first
Looks correct to me.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/
snipabacken.se> O o .