The std::reverse_copy is a simple algorithm that copies the source bidirectional range in reverse order into the output range.
Typically, std::reverse_copy offers a more natural solution than using std::copy with reverse iterators.
Click to open in Compiler Explorer.
Leave a comment