You are here |
nelari.us | ||
| | | |
danilafe.com
|
|
| | | | In this post, I talk about my favorite C/C++ pattern involving macros. | |
| | | |
mpark.github.io
|
|
| | | | An anecdote about surprising implementation challenges of `FUN`. | |
| | | |
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... | |
| | | |
www.cppstories.com
|
|
| | What do you do when the code for a variable initialization is complicated? Do you move it to another method or write inside the current scope? In this blog post, I'd like to present a trick that allows computing a value for a variable, even a const variable, with a compact notation. |