What would be a simple way to build an int vector triplet in CPP?
ie instead of a pair of 2 ints,
std::vector<std::pair<int, int> > vec;
I want 3 ints to be connected to each other as one element of a vector.
I realized that one way is to make two sub-nested pairs, but this method becomes messy. I do not know all the details of CPP, so please recommend a simpler method, if available. Thanks.
source share