Skip to content

Glossary: Data Structures and Algorithms in C++

std::span

Also written: span, subspan

A read-only view of a run of items with no copying; subspan(1) is the view without the first item. A vector converts to one.

Where the book teaches it

Related terms

Slicestd::string_view