📜  c++ tuple - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:56.039000             🧑  作者: Mango

代码示例1
#include 

std::tuple foo_tuple() 
{
  return {1, -1};  // Error until N4387
  return std::tuple{1, -1}; // Always works
  return std::make_tuple(1, -1); // Always works
}