• Forum
  • Lounge
  • How To Use std::visit With Multiple Vari

 
How To Use std::visit With Multiple Variants

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.