Blog140.2K views3,868 votes1 reply1 comment3,675 following
Stopping Buffer Overflows with C++20 std::span
Stop passing pointer-size pairs in C++. Learn how C++20's std::span provides a safer, non-owning view of contiguous memory to prevent buffer overflows.