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 >β thetypealias, servingintegral_constant< bool, __v >realness.using value_type = boolβ thevalue_typeisbool, periodt.
πΈ Public Member Functions πΈ
constexpr operator value_type () const noexceptβ aconstexprconversion operator tovalue_type, and it'snoexcept. Iconic.
π¦ Static Public Attributes π¦
static constexpr bool valueβ a staticconstexprboolnamedvalue. 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
- 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