c++ tuple with 4 elements code example
Example: get elements of tuple c++
#include <tuple>
#include <iostream>
int main()
{
auto t = std::make_tuple(1, "Foo", 3.14);
// index-based access
std::cout << "(" << std::get<0>(t) << ", " << std::get<1>(t)
<< ", " << std::get<2>(t) << ")\n";
}