Namespaces
Variants
Views
Actions

Talk:cpp/algorithm/reverse

From cppreference.com

The point about last is not clear like other API. Does last go to first or last-1 go to first. I assume last-1 as most c++ apis. The math notation [) used suggests last-1, I appreciate the just a bit more verbosity for this lol, I always get off by 1 errors as different languages do different things haha.

yes, last-1 goes to first. There is more verbosity offered by the second sentence in the description (Behaves as if...), the possible implementation, and the example. --Cubbi (talk) 09:17, 19 November 2018 (PST)