deductiongu...td::extents(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– deductionguidesforstd::extents πŸ’–

okay bestie, you're looking at the manual page for deductionguidesforstd::extents, and the header calls it deductiongu...td::extents(3). The manual name is C++ Standard Libary (yes, that spelling is right here), section 3. We're in the standard-library docs and it's giving deduction guide main character energy. πŸ’…

🌸 NAME 🌸

deductionguidesforstd::extents - deductionguidesforstd::extents

✨ Synopsis ✨

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

A deduction guide is provided for std::extents to allow deduction from integral arguments. That's literally the whole job, and it ate. 🫢

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. No cap, that's the condition. ⭐

πŸ¦‹ Example πŸ¦‹

This section is incomplete Reason: no example

not me reading an incomplete example section 😭 it's giving "we'll finish this later" energy.

πŸŽ€ See also πŸŽ€

  • constructor β€” constructs an extents (public member function)

πŸ’… Category: πŸ’…

  • Todo no example

mwah πŸ’‹ β€” source/version: http://cppreference.com, date: 2024.06.10, and the page tag is deductiongu...td::extents(3). Go deduce something cute, bestie πŸ“βœ¨

πŸ“¦ where this page comes from