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

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

NAME

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

Synopsis


[[nodiscard]] constexpr bool empty() const noexcept;


Checks if the span is empty.

Return value


true if the span is empty (i.e., size() == 0); false otherwise.

See also


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