3 ms·
C++20 added std::span, which is essentially that.
by pptr 3y ago
C++20 added std::span, which is essentially that.
- pjmlp 3y agoWithout bounds checking.
- vlovich123 3y agoHey. 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 3y agoYeah, that is exactly the problem. :)