What you mean by smart ptrs not being memory safe? Vector access can be done with at method
Which unfortunately most people avoid using, and until C++26 there is no at() for span.
The best is really to enable compiler specific hardening.
Which unfortunately most people avoid using, and until C++26 there is no at() for span.
The best is really to enable compiler specific hardening.