/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

baptiste-wicht.com
| | www.cppstories.com

For C++17 everyone wanted to have concepts, and as you know, we didn't get them. But does it mean C++17 doesn't improve templates/template meta-programming? Far from that! In my opinion, we get excellent features. Read more for details. Intro Do you work a lot with templates and meta-programming? With C++17 we get a few nice improvements: some are quite small, but also there are notable features as well!
1.2 parsecs

Travel
| |
| | 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...
2.2 parsecs

Travel
| |
| | www.fluentcpp.com

Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type.
1.1 parsecs

Travel
| |
| | blog.melashri.net

How C++ std:move is actually just specialized cast .
15.1 parsecs

Travel
|