I'm studing std::any costruct of the standard library of c++17 standard. But really i don't understand which are the the usecases in which is useful to use std::any instead of std::variant or any other costruct like template or a simple void* variable.
Someone can help me figure out these usecases?