Hacker News new | ask | show | jobs
by sicp-enjoyer 1200 days ago
All of <algorithm> uses ordering operators as well. If you have a "regular" type with proper comparison and assignment operators, it works for everything, container keys, sorting, etc, etc.