C++20 span tutorial--Paul Silisteanu

All you need to know.

C++20 span tutorial

by Paul Silisteanu

From the article:

According to the latest C++20 draft, a span is a non-owning view over a contiguous sequence of objects. In other words, a std::span is, in essence, a pointer, length pair that gives the user a view into a contiguous sequence of elements. The elements of a span can be, for example, stored in one of the standard library sequential containers (like std::array, std::vector), in a built-in C-style array or in a memory buffer...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.