I was just wondering if there was anything (either in c++11 or boost) that could help me do something like this:
std::vector v1 = {1, 2, 3}; std::
std::transform (http://en.cppreference.com/w/cpp/algorithm/transform) is what you might be looking for.