C++ comes with two heterogeneous containers, std::pair and std::tuple. As std::pair is a subset of std::tuple with only two elements, we will only focus on std::tuple.
Static-sized heterogenous containers
Get C++ High Performance now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.