__gnu_para...multiplies(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’… __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_type
  • typedef _Tp1 result_type
  • typedef _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