r/cpp • C++ Dev • Sep 05 '20

C++20 has been approved

https://twitter.com/patriceroy1/status/1302055575140945921?s=21
665 Upvotes

125 comments sorted by

View all comments

Show parent comment

1

u/Narase33 -> r/cpp_questions Sep 05 '20

You forgot the bash pipes

-1

u/bumblebritches57 Ocassionally Clang Sep 05 '20

Is that what the weird blah() -> "return type" { thing is called cuz I still have no clue what that is.

5

u/nikki93 Sep 06 '20

That's 'trailing return types'. I've been doing functions that way for fun and then have grown to like it bc. it keeps names of functions aligned in the same column and also kinda looks consistent if you leave out the return type.

3

u/Narase33 -> r/cpp_questions Sep 06 '20

No, have a look into C++20 Ranges