Check out example codes for "c++ triple". It will help you in understanding the concepts better.

Code Example 1

#include <tuple>

std::tuple<int, int, int> three;

std::get<0>( three) = 0;
std::get<1>( three) = 1;
std::get<2>( three) = 2;

Learn ReactJs, React Native from akashmittal.com