Daily bit(e) of C++ | std::any
Daily bit(e) of C++ #192, The C++17 type safe void* alternative: std::any.
The std::any, introduced in C++17, will hold a single copy-constructible value of any type.
std::any can be treated as a type-safe alternative to void*, with the caveat (and benefit) that std::any provides value semantics.