HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by pptr | Hacker News Reader
Parent
Full thread
pptr
·
C++20 added std::span, which is essentially that.
View on HN
pjmlp
·
Without bounds checking.
vlovich123
·
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.
pjmlp
·
Yeah, that is exactly the problem. :)
Reply on news.ycombinator.com