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

This is probably my most used C++17 feature too:

    for (auto& [key, value] : persons)
The nested bindings are neat. Don’t think you can do that in c++ yet.


For me it's these little things that make working with newer C++ standards so much easier. Always felt like iterating over anything was cumbersome. No longer the case.




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

Search: