/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

nelari.us
| | www.foonathan.net
2.5 parsecs away

Travel
| | 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...
| | mpark.github.io
2.7 parsecs away

Travel
| | Can we work around the limitations of non-type template parameters?
| | cukic.co
2.5 parsecs away

Travel
| | Author of the 'Functional Programming in C++' book, KDE developer and Free/Libre Software enthusiast.
| | www.cppstories.com
6.6 parsecs away

Travel
| Variadic Templates from C++11 is probably not a feature that you use on a daily basis. But recently, I've come across one refactoring example where I've decided to give a try and apply variadics. Intro When I was doing some work in some old UI code I've noticed several similar lines of code that looked like that: