Data Structure Tuple Class template std::tuple is a fixed-size collection of heterogeneous values. It is a generalization of std::pair. Tuples are in Python and in C++. // Creating the tuple tuple<int, int, int>t = {1,2,3}; // Accessing elements get<0>(t)