+ 1
You are looking for the following
http://www.cplusplus.com/reference/tuple/
A more readable example
https://www.geeksforgeeks.org/tuples-in-c/
tuples are supported in standard libraries of C++11 and above. If you want to work with previous versions of C++, you may need to consider some third party libraries like boost.
http://www.boost.org/doc/libs/1_49_0/libs/tuple/doc/tuple_users_guide.html