How do you sort containers of structs using the sort() algorithm ?
With primitive types its fairly easy, but with structs how can you use one of the fields as a sort key ?
When might you need to create a container of user defined objects ?
When might you need to create a container object on the heap rather than the stack ?
Can auto_ptr be used to create a container on the heap ?