std::identity(3cxx)

🌸 NAME 🌸

std::identity β€” like, the actual name section says it's [func.identity] The identity function. and honestly? that's the whole vibe. it takes a thing and gives you back the thing πŸ’…


✨ SYNOPSIS ✨

ok bestie, first things first, you gotta invite it in:

#include <functional>

πŸŽ€ Public Types πŸŽ€

  • using is_transparent = __is_transparent β€” bestie it's transparent, it's giving see-through icon behavior, that's the whole type right there πŸ‘‘

πŸ’œ Public Member Functions πŸ’œ

  • template<typename _Tp > constexpr _Tp && operator() (_Tp &&__t) const with noexcept β€” the main character herself. she takes your _Tp and hands it right back, constexpr and noexcept and perfect-forwarded and everything 🫢

πŸ¦‹ Detailed Description πŸ¦‹

[func.identity] The identity function.

that's it. that's the description. no cap. the identity function is literally an identity function, and the doc says exactly that and then dips πŸ’€βœ¨ iconic honestly


🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. β€” so like, no human wrote this one, the Doxygen machine did it, and we respect the machine's hustle πŸ€–πŸ’–


ngl bestie, this one's short and sweet β€” but that's the point. identity does one thing (returns __t), does it noexcept, and does it as a constexpr icon. periodt πŸ’…

🌸 okay that's the whole page!! brought to you by libstdc++, std::identity(3cxx), generated by Doxygen from the source code β€” mwah, go forth and forward your _Tp perfectly, bestie πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from