/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.cppstories.com

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!
1.6 parsecs

Travel
| |
| | www.foonathan.net

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.
1.0 parsecs

Travel
| |
| | bannalia.blogspot.com

std::unordered_map is a highly configurable class template with five parameters: template< class Key, class Value, class Hash ...
1.8 parsecs

Travel
| |
| | blog.m-ou.se

Recently, gcc added support rvalue references for *this. (Clang has supported it for quite a while now.) In this post, I show how to use this feature, and how it means we can finally define accessors and a few other things like operator= correctly.
22.7 parsecs

Travel
|