Is there a better way of printing a vector in reverse order then this:
#include #include #include using namespace
You can use the reverse iterators:
for_each(vec.rbegin(),vec.rend(),print_elem);