STD::UNWRAP_REF_DECAY(3)
πΈ NAME πΈ
okay bestie, welcome to the std::unwrap_ref_decay< _Tp > page π. Youβre in the Library Functions Manual, section (3), and the header is being all mysterious with std::unwra...cay< _Tp >(3) β thatβs just the truncated version of the same name, no cap. This is the C++ template that decays a type and, if itβs a reference_wrapper, unwraps it. periodt. β¨
β¨ SYNOPSIS β¨
π Public Types π
using type = unwrap_reference_t< decay_t< _Tp > >β the one public type, and itβs giving βdecay first, then unwrap if neededβ π . Thatβs the whole public API, bestie.
π¦ Detailed Description π¦
The template and description block, verbatim, because we do not mess with the lore:
template<typename _Tp>
struct std::unwrap_ref_decay< _Tp >" Decay type and if it's a
reference_wrapper, unwrap it
yes bestie, that " after the struct name is literally in the original π. The description means: βDecay type and if it's a reference_wrapper, unwrap itβ. Very demure, very C++ π«Ά.
β Since β
C++20 β so this is modern-era C++, bestie. Not ancient. Slay. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So the βauthorβ is the Doxygen machine π€β¨, not a human.
xoxo, your libstdc++ girlie π
β the footer says libstdc++, Fri Feb 14 2025, and std::unwra...cay< _Tp >(3). Thatβs the whole page, mwah. π
π¦ where this page comes from
- centos-stream 9: gcc-toolset-13-libstdc++-docs 13.3.1-2.3.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms