Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
How often do you see the sizeof(array)/sizeof(array[0]) statement used to get the size of an array? I really hope it′s not too often, because it′s 2024 already. In this note, we′ll talk about the...
At that point I would just use std::span if you can, then you also get the standard container/iterator interfaces for free.