A
aaragon
Hello everyone,
I would like to know if there is a way to use the std::map to store
different types for one of its two types. That is, I'm trying to use
it as:
typedef std::map<string,double> Map;
but instead of double, I have integers, even booleans so I guess that
the use of double waste a lot of storage. Is there any way to do this?
Maybe with a typename?
Thank you all,
a^2
I would like to know if there is a way to use the std::map to store
different types for one of its two types. That is, I'm trying to use
it as:
typedef std::map<string,double> Map;
but instead of double, I have integers, even booleans so I guess that
the use of double waste a lot of storage. Is there any way to do this?
Maybe with a typename?
Thank you all,
a^2