The following function:
int function();
Can also be written like:
auto function() -> int;
Reference: https://isocpp.org/wiki/faq/cpp11-language-misc#suffix-return
Monday, August 7, 2017
C++11: Suffix Return Type Syntax
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment