# std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::empty

> C++ Atlas: `cppatlas.com/w/cpp/container/mdspan/empty` | Source: https://en.cppreference.com/w/cpp/container/mdspan/empty | Domain: Containers | Standards: C++23

Check if the mdspan is empty.

## Official Specification Summary (cppreference)

```cpp
constexpr bool empty() const noexcept; // (since C++23)
```

Check if the `mdspan` is empty.

### Parameters

(none)

### Return value

`true` if the size of the multidimensional index space `extents()` is `​0​`, otherwise `false`.

### Example

> Note: This section is incomplete Reason: no example

### See also

> Note: This section is incomplete

---
Attribution: content from https://en.cppreference.com/w/cpp/container/mdspan/empty (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.