/explore
|
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! |
|
| | | | | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
bannalia.blogspot.com
std::unordered_map is a highly configurable class template with five parameters: template< class Key, class Value, class Hash ... |
|
| | | | | ||
| | | | |
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. |
|
| | | |||