MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / test_invariant

Method test_invariant

extern/boost/boost/rational.hpp:877–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875// Invariant check
876template <typename IntType>
877BOOST_CXX14_CONSTEXPR
878inline bool rational<IntType>::test_invariant() const
879{
880 return ( this->den > int_type(0) ) && ( integer::gcd(this->num, this->den) ==
881 int_type(1) );
882}
883
884// Normalisation
885template <typename IntType>

Callers 1

normalizeMethod · 0.95

Calls 1

gcdFunction · 0.70

Tested by

no test coverage detected