__gnu_parallel::plus(3)
okay so bestie, welcome to the __gnu_parallel::plus(3) page β yes, the one from the Library Functions Manual. Buckle up, because this is a tiny struct with big βwhy is this typedef like thatβ energy. π
πΈ NAME πΈ
__gnu_parallel::plus β itβs similar to std::plus, but it allows two different types. No cap, thatβs the whole point. π«Ά
β¨ SYNOPSIS β¨
It inherits from binary_function< _Tp1, _Tp2, _Tp1 >.
π Public Types π
typedef _Tp1 first_argument_typetypedef _Tp1 result_typetypedef _Tp2 second_argument_type- and then thereβs this absolute masterpiece of a
resulttypedef, copied exactly because we do not touch the chaos:
typedef __typeof__(*)(const _Tp1 &__x, const _Tp2 &__y static_cast
)(NULL)+*static_cast< _Tp2 * >(NULL)) result;resultoperator(
π Detailed Description π
Hereβs the template, copied exactly because we do not mess with the source:
template<typename _Tp1, typename _Tp2> struct __gnu_parallel::plus< _Tp1,
_Tp2 >
Similar to std::plus, but allows two different types. Thatβs the vibe. Definition at line 281 of file base.h.
π¦ Member Typedef Documentation π¦
first_argument_type [inherited] β the type of the first argument (no surprises here, bestie).
typedef _Tp1 std::binary_function< _Tp1 , _Tp2 , _Tp1
>::first_argument_type [inherited]
Definition at line 114 of file stl_function.h.
result_type [inherited] β type of the return type. Lowkey iconic.
typedef _Tp1 std::binary_function< _Tp1 , _Tp2 , _Tp1
>::result_type [inherited]
Definition at line 118 of file stl_function.h.
second_argument_type [inherited] β the type of the second argument. Periodt.
typedef _Tp2 std::binary_function< _Tp1 , _Tp2 , _Tp1
>::second_argument_type [inherited]
Definition at line 117 of file stl_function.h.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So yeah, this page was built by the robots, not a human with a group chat. π
xoxo, libstdc++ Β· 21 Apr 2009 Β· __gnu_parallel::plus(3) π
π¦ 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