__gnu_para...multiplies(3)
π
__gnu_parallel::multiplies (3)
okay so bestie, welcome to the Library Functions Manual page for __gnu_parallel::multiplies π this is a section-3 manual page, and yes it's one of those auto-generated ones β we'll get to that, don't worry π«Ά
β¨ NAME β¨
__gnu_parallel::multiplies β literally just like std::multiplies, except it lets the two types be different. that's it. that's the whole personality π
πΈ SYNOPSIS πΈ
it inherits from binary_function< _Tp1, _Tp2, _Tp1 >. periodt β¨
Inherits binary_function< _Tp1, _Tp2, _Tp1 >.
π¦ Public Types π¦
the whole cast, no skips:
typedef _Tp1 first_argument_typetypedef _Tp1 result_typetypedef _Tp2 second_argument_type- and then there's this one π β bestie I am copying this exactly, character for character, do not come for me:
typedef __typeof__(*)(const _Tp1 &__x, const _Tp2 &__y static_cast
)(NULL)**static_cast< _Tp2 * >(NULL)) result;resultoperator(
yes. that's really what it says. it's giving "generated by a robot at 3am" energy and honestly? iconic π
π Detailed Description π
here's the actual struct, slay:
template<typename _Tp1, typename _Tp2> struct __gnu_parallel::multiplies<
_Tp1, _Tp2 >
Similar to std::multiplies, but allows two different types. so _Tp1 and _Tp2 can be two totally different types and it just... works. main character energy fr fr π
Definition at line 306 of file base.h. π
π Member Typedef Documentation π
β typedef _Tp1 std::binary_function< _Tp1 , _Tp2 , _Tp1 >::first_argument_type [inherited]
the type of the first argument (no surprises here) ππ
β inherited, so it's not even doing its own work, it's just vibing off std::binary_function.
Definition at line 114 of file stl_function.h. π
β typedef _Tp1 std::binary_function< _Tp1 , _Tp2 , _Tp1 >::result_type [inherited]
type of the return type. yes bestie, return type = _Tp1. it said what it said π
Definition at line 118 of file stl_function.h. π
β typedef _Tp2 std::binary_function< _Tp1 , _Tp2 , _Tp1 >::second_argument_type [inherited]
the type of the second argument β and look at that, it's _Tp2, the other type πΈ this is literally the whole point of the struct, the two-different-types thing. we love a consistent queen π
Definition at line 117 of file stl_function.h. π
π§ Author π§
Generated automatically by Doxygen for libstdc++ from the source code. yup β nobody hand-wrote this, a robot did, which explains that typedef up there ππ€
okay that's the whole page, you're so welcome, go forth and multiply (literally) πβ¨
libstdc++ Β· 21 Apr 2009 Β· __gnu_para...multiplies(3) β that's the source, the version and the date all in one cute little sign-off, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms