Using C++17 std::optional--Bartlomiej Filipek

Save to:
Instapaper Pocket Readability

A reminder.

Using C++17 std::optional

by Bartlomiej Filipek

From the article:

Let’s take a pair of two types <YourType, bool> - 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.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.