Reversing strings in a vector using for_each and bind
- by fmuecke
Hi! I was wandering how it's possible to reverese strings that are contained in a vector using a single for_each command just in one "simple" line.
Yea, I know it is easy with a custom functor, but I can't accept, that it can't be done using bind (at least I couldn't do it).
#include <vector>
#include <string>
#include…