deductiongu...nce_wrapper(3)
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 fromreference_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:addeddeduction 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms