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

I'm new to C++ so please forgive my ignorance but where is howAwesome() defined in result1's lambda?


It isn't. It's a part of the type "ResultT1."


Those lambdas are immediately applied, so it's defined in the type returned by them.




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

Search: