/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

www.fluentcpp.com
| | brevzin.github.io
3.0 parsecs away

Travel
| |
| | www.foonathan.net
1.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...
| | ericniebler.com
6.0 parsecs away

Travel
| | At GoingNative back in September, Andrei Alexandrescu posed an interesting question about API design and C++11 that has had me scratching my head for a month. It was about the design of std::getlin...
| | www.foonathan.net
34.9 parsecs away

Travel
| The size of std::array is known at compile-time given the type. Yet it only provides a regular .size() member function: template struct array { constexpr std::size_t size() const { return N; } }; This is annoying if you're writing generic code that expects some sort of compile-time sized range.