deductiongu...::take_view(3)

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

πŸŽ€ NAME

okay bestie, this is deductiongu...::take_view(3) β€” yes, the header calls the library C++ Standard Libary (their spelling, not mine πŸ’…). This page is all about the deduction guides for std::ranges::take_view.

deductionguidesforstd::ranges::take_view β€” and the name is literally deductionguidesforstd::ranges::take_view again. It’s giving β€œsay it twice so it sticks” energy. periodt.

✨ Synopsis

Defined in header <ranges> (exact, no cap):

template< class R >
take_view( R&&, ranges::range_difference_t<R> ) ->
take_view<views::all_t<R>>;

Since C++20, bestie. This deduction guide is provided for std::ranges::take_view to allow deduction from a range and number of elements. Obsessed with the convenience.

🌈 Example

This section is incomplete Reason: no example

No example yet β€” the page said it, not me 😭.

πŸ’€ Defect reports

These behavior-changing defect reports were applied retroactively to previously published C++ standards. Here’s the tea β˜• in bullet form:

  • DR: LWG 3447
  • Applied to: C++20
  • Behavior as published: the template parameter R is constrained with range
  • Correct behavior: R is unconstrained (but range_difference_t requires range)

πŸ“ Category

This page’s category is literally:

  • Todo no example

That’s the whole page, bestie 🫢. Source/version + date from the footer: http://cppreference.com, 2024.06.10, and the manual tag deductiongu...::take_view(3). Slay πŸ’…βœ¨

πŸ“¦ where this page comes from