dimanche 26 novembre 2017

in C++, how to check if an object is a vector or a list

I am doing map serialization, but the value of map can be anything(like vector, list, set, string, etc). I would like to know if any method the check the type of it, so that I can use different tag when serializing different type. Any other method is also very welcome.

Thanks very much!

Aucun commentaire:

Enregistrer un commentaire