简体   繁体   中英

Does C++14 defines function parameters of type 'auto'?

As I was flipping through ISO C++ draft (n4296) for searching the keyword 'auto' - I never find it being mentioned for function-parameters.

Can someone help me? How C++ 14 treats a declaration of follows:

void func(auto arg) {}

C ++ 14可以在lambda参数类型中具有auto,但不能具有free函数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM