News for hackers. Stuff that matters.
Re:C++ by Example by photochemsyn on Thursday September 22, 2022 @10:41AM (#32939434)
Nice educational resource. Things like this help a lot relative to cppreference which often assumes the reader knows many things already. For example:

https://cppbyexample.com/what_is_unique_ptr.html

https://en.cppreference.com/w/cpp/memory/unique_ptr

The former spells out the rationale for the design - such as why you might need get or why make_unique is better than new, and why copies are forbidden but moves are allowed - that the official reference sort of assumes the reader already understands.

There are no comments on this comment yet.