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_typeis the type of the first argument πtypedef _Tp result_typeβresult_typeis the return type πtypedef _Tp second_argument_typeβsecond_argument_typeis 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'sconstexpr, 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_typeis the type of the first argument π«Άtypedef _Tp std::binary_function< _Tp , _Tp , _Tp >::result_type[inherited]βresult_typeis the return type β¨typedef _Tp std::binary_function< _Tp , _Tp , _Tp >::second_argument_type[inherited]βsecond_argument_typeis 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
- 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