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

I omitted the return type (which is allowed for lambdas in C++11, and now arbitrary functions (with some conditions) in C++14) because it was a 1-liner. The bool return type can be deduced by the compiler automatically (or else it would fail to compile) and by the human by the operator < in use, the fact that it's being passed to sort, etc.


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

Search: