Is there a C++ container that I could use or build that can contain, say, int and string and double types? The problem I\'m facing is
You can use either structures, or classes or std::pair.
[edit]
For classes and structs:
struct XYZ {
int x;
string y;
double z;
};
std::vector container;
XYZ el;
el.x = 10;
el.y = "asd";
el.z = 1.123;
container.push_back(el);
For std::pair:
#include
typedef std::pair > XYZ;
std::vector container;
container.push_back(std::make_pair(10, std::make_pair("asd", 1111.222)));