auto get_multiple_values(const bool condition)
-> std::tuple<bool, int>
{
if (condition) {
return {true, 5};
}
return {false, 0};
}
void foo()
{
auto [status, value] = get_multiple_values(true);
}