Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

In-Place Construction for std::any, std::variant and std::optional

$
0
0

in place construction for C++17

When you read articles or reference pages for std::any, std::optional or std::variant you might notice a few helper types called in_place_* available in constructors.

Why do we need such syntax? Is this more efficient than “standard” construction?

Read more...

Viewing all articles
Browse latest Browse all 325

Trending Articles