May 2017
Intermediate to advanced
590 pages
17h 18m
English
To visit a variant, you must provide one or more actions for the possible alternatives of the variant. There are several types of visitors that are used for different purposes:
for (auto const & d : dvds) { std::visit([](auto&& arg) { std::cout << arg.title << std::endl; }, d); }
Read now
Unlock full access