Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C++ has operator overloading, so you can define the spaceship for any class, and get every comparison operator from the fallback definitions, which use `<=>` in some obvious ways.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: