deductiongu...nce_wrapper(3)

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

okay so bestie, welcome to the deductiongu...nce_wrapper(3) page from the C++ Standard Libary (yes, that spelling is staying, it’s part of the vibe 😭✨). This is all about deduction guides for std::reference_wrapper, and it’s lowkey iconic how specific this is πŸ’….

πŸ’– NAME πŸ’–

deductionguidesforstd::reference_wrapper β€” deductionguidesforstd::reference_wrapper

✨ Synopsis ✨

Defined in header <functional>
template< typename T >                            (since C++17)
reference_wrapper( T& ) -> reference_wrapper<T>;

One deduction guide is provided for std::reference_wrapper to support deduction of the sole class template parameter. That’s the whole synopsis, no cap 🫢.

🌸 Example 🌸

This section is incomplete 😭

Reason: no example

πŸ¦‹ Defect reports πŸ¦‹

The following behavior-changing defect reports were applied retroactively to previously published C++ standards. So yeah, they went back and fixed the receipts πŸ“œβœ¨

  • DR: LWG 2981; Applied to: C++17; Behavior as published: a redundant deduction guide from reference_wrapper<T> was provided; Correct behavior: removed.
  • DR: LWG 2993; Applied to: C++17; Behavior as published: defect resolution removed a constructor used for class template argument deduction; Correct behavior: added deduction guide to compensate.

πŸŽ€ Category πŸŽ€

  • Todo β€” no example

okay bye bestie, mwah πŸ’‹ β€” this page came from http://cppreference.com and it’s dated 2024.06.10, periodt 🌈.

πŸ“¦ where this page comes from