In Java you can create a Map that maps String to Generic Object types that can be explicitly casted to other classes. Is there any nice way of imitating this functionality in C++?
In C++17 you can use std::map<std::string, std::any>.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With