Daily bit(e) of C++ | std::reverse_copy
Daily bit(e) of C++ #404, The algorithm for copying a bidirectional range in reverse order: std::reverse_copy.
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.