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

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -