|
You are here |
www.thbecker.net | ||
| | | | |
thbecker.net
|
|
| | | | | [AI summary] An educational article by Thomas Becker explaining the purpose and mechanics of C++11 rvalue references, move semantics, and perfect forwarding. | |
| | | | |
blog.m-ou.se
|
|
| | | | | Recently, gcc added support rvalue references for *this. (Clang has supported it for quite a while now.) In this post, I show how to use this feature, and how it means we can finally define accessors and a few other things like operator= correctly. | |
| | | | |
www.fluentcpp.com
|
|
| | | | | Storing a reference to an lvalue or an rvalue in the same object has always been difficult in C++. With std::variant, it becomes simple. | |
| | | | |
www.foonathan.net
|
|
| | | Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen... | ||