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
int
string
double
What you want is called a "hetrogenious container". C++ doesn't technically support them in the STL, but Boost does.
Given that, I think you'll find your answer in this question: how-do-you-make-a-heterogeneous-boostmap