← All notes
std::list Must Use Its Own sort
C++STL
list is a model of object orientated programming, binding data and methods together

- Because list is a linked list, it does not support random access, so it cannot use the global sort, which requires random access through iterators
Function template flow: first deduce that the type is stone, then call stone's overloaded operator>
- It acts on the variable on the left, which here is b._weight > rsh(a)._weight
