this post was submitted on 11 Apr 2024
28 points (93.8% liked)
C++
1775 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Tbh if you aren’t already using someone else’s array implementation that includes length information, just write your own simple wrapper e.g.
At that point I would just use std::span if you can, then you also get the standard container/iterator interfaces for free.
The article did mention that that's what you'd probably have to do.