Functional map operation for C++ tuples