/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

hackingcpp.com
| | studiofreya.org
3.5 parsecs away

Travel
| | [AI summary] A C++11 variadic template example demonstrating perfect forwarding to wrap constructor calls for a structure.
| | eyakubovich.github.io
4.8 parsecs away

Travel
| | Suppose we need to write a factory function that constructs a runtime polymorphic object. For the purposes of this post, let's say we want to construct a concrete shape object - a rectangle, triangle, or an ellipse. Here are our basic declarations: 1 2 3 4 5 6 7 8...
| | www.foonathan.net
4.9 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...
| | accu.org
17.6 parsecs away

Travel
| What is C++ and why do people still use it? Bjarne Stroustrup provides a short note answering these questions.