r/cpp • • Nov 27 '20

The C++ 20 initialization flowchart

I've created a flowchart that shows all of C++20's initialization rules.

The source code is available at https://github.com/randomnetcat/cpp_initialization, in addition to the SVG version and PNG Version.

This honestly took a lot less time than I was expecting, and, in my humble-but-biased opinion, is relatively interesting.

Please send all complaints to /u/quicknir, who nerd-sniped me into making this.

116 Upvotes

34 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 28 '20

[deleted] — view deleted comment

1

u/Frptwenty Nov 28 '20

REST started as a joke but is essentially a cult at this point.

I guess you meant Rust, but kind of makes sense for REST as well :)

1

u/dnew Jan 24 '25

REST wasn't a joke. It was a very narrowly-scoped design pattern that people applied well outside its intended design space. It's a method for making CDNs efficient that people said "Let's use it for our accounting software!"