|
You are here |
www.bfilipek.com | ||
| | | | |
www.cppstories.com
|
|
| | | | | Let's take a pair of two types - what can you do with such composition? In this article, I'll describe std:optional - a new helper type added in C++17. It's a wrapper for your type and a flag that indicates if the value is initialized or not. Let's see where it can be useful and how you can use it. | |
| | | | |
www.cppstories.com
|
|
| | | | | When you see an article about new C++ features, most of the time you'll have a description of major elements. Looking at C++17, there are a lot of posts (including articles from this blog) about structured bindings, filesystem, parallel algorithms, if constexpr, std::optional, std::variant... and other prominent C++17 additions. But how about some smaller parts? | |
| | | | |
oleksandrkvl.github.io
|
|
| | | | | ||
| | | | |
www.fluentcpp.com
|
|
| | | Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type. | ||