What's the point of C++17's std::any?

Viewed 147

As the title says, I cannot think of any use case of C++17's new "universal type" std::any. Is it just a better version of void* or is there any other reason to use it but replacing void*? Under what circumstances is it good practice to use std::any in professional software development?

0 Answers
Related