Answers for "make_tuple cpp"

C++
0

c++ tuple

#include <tuple>

std::tuple<int, int> foo_tuple() 
{
  return {1, -1};  // Error until N4387
  return std::tuple<int, int>{1, -1}; // Always works
  return std::make_tuple(1, -1); // Always works
}
Posted by: Guest on January-08-2022
-1

c++ tuple

12345678910111213141516
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language