/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

mpark.github.io
| | 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...
4.1 parsecs

Travel
| |
| | ventspace.wordpress.com

Something that comes up occasionally for me is that I'd like to write a template function that accepts a lambda, and then peels back the layers of the lambda to get type information about it. For example, I'd like to have a templated type parameter for the return value of that lambda to be able...
4.1 parsecs

Travel
| |
| | nelari.us

A small look at some useful template techniques, in the context of trying to bind functions to a virtual machine. I wrote this post mostly for myself so that these techniques would be listed all in one place.
4.0 parsecs

Travel
| |
| | blog.notmyhostna.me

For my new side project I needed to build a browser extension. I was hesitant to build one as the development experience of doing everything in the ...
19.2 parsecs

Travel
|