Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #tuple
ADD COMMENT
Topic
Name
5+6 =