Hacker News new | past | comments | ask | show | jobs | submit login

C++20 added std::span, which is essentially that.



Without bounds checking.


Hey. Be reasonable. That's coming in c++26 using the `.at` interface that no one actually uses because `[]` is more natural, shorter (2.5x shorter), and convenient.


Yeah, that is exactly the problem. :)




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

Search: