STD::EQUAL_TO(3cxx)

πŸŽ€ NAME πŸŽ€

ok so <pink>std::equal_to< _Tp ></pink> β€” literally one of the comparison functors. that's the whole vibe, bestie πŸ’…


✨ SYNOPSIS ✨

#include <functional>

Inherits std::binary_function< _Tp, _Tp, bool >. yup, it's giving nepo baby β€” it gets all its typedefs from that parent 🫢

🌸 Public Types 🌸

  • typedef _Tp first_argument_type β€” first_argument_type is the type of the first argument (iconic naming, no notes)
  • typedef bool result_type β€” result_type is the return type. it's a bool. it ate. βœ…
  • typedef _Tp second_argument_type β€” second_argument_type is the type of the second argument, matching its sibling fr fr πŸ‘‘

πŸ’œ Public Member Functions πŸ’œ

  • constexpr bool operator() (const _Tp &__x, const _Tp &__y) const β€” the main character of the whole page, the actual call operator πŸ‘‘

Detailed Description πŸ“–

template<typename _Tp>
    struct std::equal_to< _Tp >"One of the comparison functors.

(no cap, that 😭 stray quote is just how it showed up in the source β€” copy it verbatim energy)

🫢 quick reminder: _Tp is the template parameter, so you pick what type you're comparing. it's a template, it's flexible, it's versatile, it's that girl πŸ’…

🌈 Member Typedef Documentation 🌈

these three are all marked [inherited] β€” they come from the parent, std::binary_function< _Tp , _Tp , bool >. inherited wealth, honestly πŸ‘‘

  • typedef _Tp std::binary_function< _Tp , _Tp , bool >::first_argument_type β€” [inherited] β€” first_argument_type is the type of the first argument πŸ“
  • typedef bool std::binary_function< _Tp , _Tp , bool >::result_type β€” [inherited] β€” result_type is the return type 🌟
  • typedef _Tp std::binary_function< _Tp , _Tp , bool >::second_argument_type β€” [inherited] β€” second_argument_type is the type of the second argument πŸ¦‹

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

kk so that's the whole thing β€” every typedef, every member, all present and accounted for, nothing skipped, we do not cut corners in this house πŸ’–

later bestie, this page was generated automatically by Doxygen for libstdc++ straight from the source code, and the header/footer tags are std::equal_to< _Tp >(3cxx) on both ends πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from