26.5.1 Function Objects (cont.)
Client is ignorant of sort implementation
Sort compares using:
if (!comp(x, y))
rearrange x and y
;
comp
is the object we passed in
comp(x, y)
invokes
SalaryComparator::operator()
Any sense of comparison is now possible
prev
|
top
|
next