std::span<T,Extent>::size (3) - Linux Man Pages

std::span<T,Extent>::size: std::span<T,Extent>::size

NAME

std::span<T,Extent>::size - std::span<T,Extent>::size

Synopsis


constexpr index_type size() const noexcept;


Returns the number of elements in the span.

Return value


The number of elements in the span.

See also


              constructs a span
constructor (public member function)
              returns the size of the sequence in bytes
size_bytes (public member function)