According to the C++23 standard, what is the output of this program?
#include <iostream>
#include <tuple>
int main()
{
const auto t = std::make_tuple(42, 3.14, 1337);
std::cout << std::get<int>(t);
}There are two ints in the tuple.
The program has a compilation error
std::get can only be used on a tuple which has exactly one T in it.
(...) template<class T, class... Types> constexpr const T& get(const tuple<Types...>& t) noexcept; (...)Mandates: The type
Toccurs exactly once inTypes.