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) constwithnoexceptβ the main character herself. she takes your_Tpand hands it right back,constexprandnoexceptand 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 itnoexcept, and does it as aconstexpricon. 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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms