/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

brevzin.github.io
| | www.foonathan.net

When should you write a destructor? When a copy constructor? Does it make sense to have assignment only? Quick guidelines: rule of zero, rule of three, rule of five, and everything else.
10.4 parsecs

Travel
| |
| | www.sandordargo.com

Reading through Scott Meyer's Efective Modern C++ helped me discover a lot of features of modern C++, including right value references, the trailing return type declaration and lambda expressions. Let's talk about those lambdas in this post.
9.8 parsecs

Travel
| |
| | www.cppstories.com

In C++11, we got a handy way to initialize various containers. Rather than using push_back() or insert() several times, you can leverage a single constructor by taking an initializer list. For example, with a vector of strings, you can write: std::vector vec { "abc", "xyz", "***" }; We can also write expressions like: for (auto x : {1, 2, 3}) cout << x << ", "; The above code samples use std::initializer_list and (some compiler support) to hold the values and pass them around. Let's understa......
17.2 parsecs

Travel
| |
| | www.observationalhazard.com

David Kopec's blog.
40.7 parsecs

Travel
|