#include <tuple> .... std::tuple<int, int, int> tpl; std::get<0>(tpl) = 1; std::get<1>(tpl) = 2; std::get<2>(tpl) = 3;