hackingcpp — Span
#cheatsheet#cplusplus#cpp#interface#programming Published: 2021-12-21 13:27:02 +0000 UTC; Views: 308; Favourites: 0; Downloads: 1 Redirect to originalDescription
Example-based overview of std::span's interface. span was introduced with C++20 and represents a lightweight, non-owning view of a contiguous memory range. Its purposes are to make interfaces taking ranges more generic (container independent) and also to obviate classic C-like "pointer+size" interfaces.
Related content