function - Is there a way to pass auto as an argument in C++? -
is there way pass auto argument function?
int function(auto data) { //does }
if want mean can pass type function, make template:
template <typename t> int function(t data);
there's proposal c++17 allow syntax used (as c++14 generic lambdas), it's not standard yet.
Comments
Post a Comment