Multiple ChoiceIntermediate 45s
ranges sort projection argument
Given ranges::sort(people, {}, &Person::age), what role does &Person::age play?
Options
- 1A comparator called with two objects to decide their order
- 2A projection applied to each element before comparison
- 3A sentinel marking the end of the range being sorted
- 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.