template struct Poco::Util::Units::Internal::CheckTermsEqual

Overview

Counts the power of the Unit Term in Units T1 and T2. More…

#include <Units.h>

template <
    typename Term,
    typename T1,
    typename T2
    >
struct CheckTermsEqual
{
    // typedefs

    typedef CountTerms<Term, T1> count1;
    typedef CountTerms<Term, T2> count2;

    // fields

    static const bool Value;
};

Detailed Documentation

Counts the power of the Unit Term in Units T1 and T2.

Reports if they are equal, using equality of fractions. Does a depth-first search of the Unit “Term”, or counts the terms in the default case.