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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -