Ive been searching for this topic a lot and have failed to find any satisfying answer. Im looking for a method to do what most high level languages can already do, take a tuple and a mapping method and return a mapped ( aka transformed ) tuple. Ideally this would work in c++14, though c++17 is ok if required.
For example:
auto new_tuple = awesome_make_tuple( curtuple, []( auto & v ) { return v - 1; } )
Types can be different but the provided method would have to work for any given type. ( Side Q, can the method be templated somehow? )