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

Only for the most primitive types, though. For anything else, operator[] is used in C++ instead, without an operator+ fallback. So for example, if your array is a std::array instead of a C-style array, saying 1[array] will not work.


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

Search: