STD::NEGATE(3cxx)
π NAME π
okay so bestie, you're in the (3cxx) manual and the main character is std::negate< _Tp >. The name line is right there: std::negate< _Tp > - One of the math functors. That's the whole name vibe. π
β¨ SYNOPSIS β¨
#include <functional>
Inherits std::unary_function< _Tp, _Tp >. Lowkey foundational, no cap.
πΈ Public Types πΈ
typedef _Tp argument_typeβ argument_type is the type of the argumenttypedef _Tp result_typeβ result_type is the return type
π Public Member Functions π
constexpr _Tp operator() (const _Tp &__x) constβ that's the signature, exactly as the page gives it. constexpr and const, yes bestie. β¨
π¦ Detailed Description π¦
The detailed description is literally this template moment:
template<typename _Tp>
struct std::negate< _Tp >"One of the math functors.
That quote mark is part of the source text here, just so we're clear. It's giving math functor with a little chaos. π
π Member Typedef Documentation π
argument_type
typedef _Tp std::unary_function< _Tp , _Tp >::argument_type [inherited]
argument_type is the type of the argument β inherited, still iconic. π«Ά
result_type
typedef _Tp std::unary_function< _Tp , _Tp >::result_type [inherited]
result_type is the return type β also inherited, also slay. β
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
xoxo bestie π the footer tea is: source/version libstdc++, page tag std::negate< _Tp >(3cxx), and there's no date printed on this page to spill. mwah π
π¦ 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