I am fairly new to c++, I dont really have any background in it. I am tying to create a list of tuples, the first will be an int, the second will be a string.
Might not be relevant here, but if the "creation part" contains filling up the list with elements, Boost.Assign could be useful. You can do something like this:
#include
#include
int main()
{
typedef boost::tuple tuple;
std::vector v = boost::assign::tuple_list_of(1, "foo")(2, "bar");
}
Depending on your scenario ofcourse.