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 - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

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