# deduction guides for std::extents

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

A deduction guide is provided for std::extents to allow deduction from integral arguments.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <mdspan>

template< class... Integrals >
explicit extents( Integrals... ) -> /* see below */; // (since C++23)
```

A deduction guide is provided for `std::extents` to allow deduction from integral arguments.

The deduced type is equivalent to

`std::dextents<std::size_t, sizeof...(Integrals)>` (until C++26)

`std::extents<std::size_t, maybe-static-ext <Integrals>...>` (since C++26)

This overload participates in overload resolution only if `(std::is_convertible_v<Integrals, std::size_t> &&...)` is `true`.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [(constructor)](https://en.cppreference.com/w/cpp/container/mdspan/extents/extents): constructs an `extents` (public member function)

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