cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Lounge
How To Use std::visit With Multiple Vari
How To Use std::visit With Multiple Variants
Sep 10, 2018 at 7:30am UTC
Thomas1965
(4571)
std::visit is a powerful utility that allows you to call a function over a currently active type in std::variant. It does some magic to select the proper overload, and what’s more, it can support many variants at once.
https://www.bfilipek.com/2018/09/visit-variants.html
Topic archived. No new replies allowed.