All challenges
Multiple ChoiceIntermediate 45s

std tuple vs named struct

Which is a real drawback of using std::tuple instead of a struct with named members?
Options
  1. 1Tuples cannot be copied, so they must be passed by reference
  2. 2Field access by index is less self-documenting and error-prone
  3. 3Tuples cannot be returned from functions with deduced types
  4. 4Tuples are always less efficient, adding padding and indirection

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle