/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

brevzin.github.io
| | www.foonathan.net
3.2 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.8 parsecs away

Travel
| | Can we work around the limitations of non-type template parameters?
| | www.fluentcpp.com
3.0 parsecs away

Travel
| | There is a particular case for default parameters: it's when their type is a template type. Read on to see how to get this right.
| | gcher.com
22.4 parsecs away

Travel
| As of 2019, C and C++ are the only programming languages that are supported by virtually any platforms on the market. For example both iOS and android support compiling C and C++ directly as part of their official IDEs. This is one of the reason why I decided to write my voxel editor Goxel in C99: I wanted to be able to run it on Linux, Mac, Windows, iOS, and now I am working on a Android port as well.