Is there an idiomatic way to create a U to V mapper function template in C++?
I am learning about C++ right now, and trying out some of the templating features. I am trying to create a generic template that receives a function F
from U
to V
, a std::array
of type U
, and then returns (with RVO) an array of type V
.