/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

eyakubovich.github.io
| | www.foonathan.net
3.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.
| | www.cppstories.com
4.6 parsecs away

Travel
| | For C++17 everyone wanted to have concepts, and as you know, we didn't get them. But does it mean C++17 doesn't improve templates/template meta-programming? Far from that! In my opinion, we get excellent features. Read more for details. Intro Do you work a lot with templates and meta-programming? With C++17 we get a few nice improvements: some are quite small, but also there are notable features as well!
| | www.think-cell.com
3.8 parsecs away

Travel
| | [AI summary] This post explores a C++ idiom using static constexpr and std::integral_constant to provide compile-time size information for std::array.
| | www.foonathan.net
28.7 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...