Sections[lib]

Standard Library

The library that ships with every compiler, from containers and algorithms to ranges and smart pointers, for developers choosing which type to reach for first.

Clause
2 of 8
Answers
21, newest first
Page
3 of 3
Written for
C++17
Written by

Answers in Standard Library 21, newest first

  1. std::variant in C++: std::visit, std::get and the traps

    Create a std::variant, read it with std::get, get_if or std::visit, catch the missing case a conversion hides, and see what it costs and when to skip it.

    §2.99 min readC++17

    written for C++17