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 argument
  • typedef _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