In Python, we have tuple, and in Java, we have Map, but in C++, the language itself doesn’t contain anything equivalent. Nevertheless, we can use STL - the Standard Template Library - to construct the data structure.
Of course, we can construct this by ourself, and it’s not complex, but as we will see, with “pair” we can make it easier and simpler.
This is an example:
1 2 3 4 5 6