/explore
|
You are here |
brevzin.github.io | ||
| | | | |
www.foonathan.net
When C++11 introduced move semantics, it also added two important helper functions: std::move and std::forward. They are essential when you want to manually indicate that you no longer care about an object or need to propagate the value category in generic code. As such, Ive used them countless times in the past. However, they are functions. Plain, old, standard library functions. This is problematic for multiple reasons. |
|
| | | | | ||
| | | | |
mpark.github.io
A visitation mechanism for `std::variant`. |
|
| | | | | ||
| | | | |
www.sandordargo.com
In one of the previous articles on binary sizes, we discussed how making a class polymorphic by using the virtual keyword affects the binary size. Turning a function into virtual has a substantial effect on the binary size, but adding more and more virtual methods to a class that already has at least one virtual function does not change that much. To have an elaborate example I went to the publicly available code examples of C++ Software Design by Klaus Iglberger. As I explained here, it's one of the best books I read in 2022. If you are interested in software design and C++, in my opinion, it's a must-read. In the book, you can find different implementations of various design patterns. All the discussed design patterns are first presented through their clas... |
|
| | | | | ||
| | | | |
blog.fahhem.com
Posts and writings by Fahrzin Hemmati |
|
| | | |||