All challenges
Multiple ChoiceIntermediate 45s

ranges sort projection argument

Given ranges::sort(people, {}, &Person::age), what role does &Person::age play?
Options
  1. 1A comparator called with two objects to decide their order
  2. 2A projection applied to each element before comparison
  3. 3A sentinel marking the end of the range being sorted
  4. 4A memory allocator used for temporary sort storage

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