Namespaces
Variants
Views
Actions

std::dynamic_extent

From cppreference.com
< cpp‎ | container‎ | span
Defined in header <span>
inline constexpr std::ptrdiff_t dynamic_extent = -1;
(since C++20)

std::dynamic_extent is a constant of type std::ptrdiff_t that is used to differentiate std::span of static and dynamic extent.

[edit] See also

(C++20)
a non-owning view over a contiguous sequence of objects
(class template) [edit]