Explore >> Select a destination


You are here

mpark.github.io
| | belaycpp.com
5.7 parsecs away

Travel
| | [AI summary] The post walks through designing and implementing a compact, template-based error handler for C++ using variadic templates, exceptions, and concepts.
| | www.foonathan.net
7.0 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...
| | www.cppstories.com
5.6 parsecs away

Travel
| | In C++11, we got a handy way to initialize various containers. Rather than using push_back() or insert() several times, you can leverage a single constructor by taking an initializer list. For example, with a vector of strings, you can write: std::vector vec { "abc", "xyz", "***" }; We can also write expressions like: for (auto x : {1, 2, 3}) cout << x << ", "; The above code samples use std::initializer_list and (some compiler support) to hold the values and pass them around. Let's understa......
| | nelari.us
17.1 parsecs away

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