std::span<T,Extent>::size_bytes (3) - Linux Manuals

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

NAME

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

Synopsis


constexpr index_type size_bytes() const noexcept;


Returns the size of the sequence in bytes.

Return value


The size of the sequence in bytes, i.e., size() * sizeof(element_type).

See also


     returns the number of elements in the sequence
size (public member function)