STD::MULTIPLIES(3cxx)

πŸ’… NAME πŸ’…

okay bestie, say hi to std::multiplies< _Tp > β€” literally one of the math functors. This whole page is from the 3cxx manual, and it's giving tiny-but-iconic C++ functor energy πŸŽ€βœ¨

✨ SYNOPSIS ✨

First things first, you gotta bring in the goods:

#include <functional>

Then the inheritance situation, no cap:

  • Inherits std::binary_function< _Tp, _Tp, _Tp >.
  • Inherited by __gnu_parallel::_Multiplies< _Tp, _Tp, _Tp >.

🫢 Public Types 🫢

  • typedef _Tp first_argument_type β€” first_argument_type is the type of the first argument πŸ’–
  • typedef _Tp result_type β€” result_type is the return type 🌟
  • typedef _Tp second_argument_type β€” second_argument_type is the type of the second argument πŸ¦‹

🌸 Public Member Functions 🌸

  • constexpr _Tp operator() (const _Tp &__x, const _Tp &__y) const β€” this is the call operator signature, and yes it's constexpr, periodt πŸ’…

πŸ¦‹ Detailed Description πŸ¦‹

So the whole struct is set up like this, bestie β€” keep it exact:

   template<typename _Tp>
       struct std::multiplies< _Tp >"One of the math functors.

That's literally the shape of it. It's a template struct, it's a math functor, and that quote mark is just living there in the original. We don't question the icon's choices πŸ˜­πŸ‘‘

πŸ’– Member Typedef Documentation πŸ’–

These are the inherited typedefs, and they are serving the same info with their full qualified names. Copying them exactly because that's the whole vibe:

  • typedef _Tp std::binary_function< _Tp , _Tp , _Tp >::first_argument_type [inherited] β€” first_argument_type is the type of the first argument 🫢
  • typedef _Tp std::binary_function< _Tp , _Tp , _Tp >::result_type [inherited] β€” result_type is the return type ✨
  • typedef _Tp std::binary_function< _Tp , _Tp , _Tp >::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. No cap, that's the author line and we respect it πŸ’œ


mwah πŸ’‹ huge sign-off energy to libstdc++ and the 3cxx manual for this page β€” that's the source/version vibe and the manual section, right there at the end, periodt πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from