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

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

Returns the underlying data handle of data_handle_type. Equivalent to return ptr_;.

## Official Specification Summary (cppreference)

```cpp
constexpr const data_handle_type& data_handle() const noexcept; // (since C++23)
```

Returns the underlying data handle of `data_handle_type`. Equivalent to `return ptr_;`.

### Parameters

(none)

### Return value

A const reference to the underlying data handle.

### 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/data_handle (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.