STD::UNWRAP_REF_DECAY(3)

πŸ“¦
version 13.3.1 Β· 2 versions
, in centos-stream 9

🌸 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