STD::RATIO_NOT_EQUAL(3cxx)

hey bestie πŸ’– you're looking at std::ratio_not_equal< _R1, _R2 > from the (3cxx) manual β€” the C++ ratio_not_equal page, and yes she's a whole template struct. Slay.

πŸŽ€ NAME πŸŽ€

std::ratio_not_equal< _R1, _R2 > β€” aka ratio_not_equal. That's the name, and we're obsessed.

✨ SYNOPSIS ✨

First, the include, exactly as written:

#include <ratio>

Then the inheritance flex: it inherits std::integral_constant< bool, !ratio_equal< _R1, _R2 >::value >.

πŸ’… Public Types πŸ’…

  • using type = integral_constant< bool, __v > β€” the type alias, serving integral_constant< bool, __v > realness.
  • using value_type = bool β€” the value_type is bool, periodt.

🌸 Public Member Functions 🌸

  • constexpr operator value_type () const noexcept β€” a constexpr conversion operator to value_type, and it's noexcept. Iconic.

πŸ¦‹ Static Public Attributes πŸ¦‹

  • static constexpr bool value β€” a static constexpr bool named value. Lowkey essential.

πŸ” Detailed Description πŸ”

Here's the template signature, no cap:

template<typename _R1, typename _R2>
struct std::ratio_not_equal< _R1, _R2 >"ratio_not_equal

Yep, that quote mark situation after the > is literally in the original β€” we keep it, periodt.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Slay, Doxygen πŸ’….


πŸ’– cute sign-off: source/version is libstdc++ from the (3cxx) manual, and the footer doesn't show a separate date β€” so no date to report, bestie. Bye, go enjoy your ratio not-equal realness πŸ«ΆπŸ’…

πŸ“¦ where this page comes from