I was just experimenting with C++ templates when my friend asked me about NumPy\'s vectorize function, so I tried to implement my own version of it in C++. However, I decide