W3cubDocs

/C++

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

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
(public member function)
returns the size of the sequence in bytes
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/span/size