MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / compareEqual

Function compareEqual

unittests/catch.hpp:1351–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349 // Specialised comparison functions to handle equality comparisons between ints and pointers (NULL deduces as an int)
1350 template<typename LhsT, typename RhsT>
1351 auto compareEqual( LhsT const& lhs, RhsT const& rhs ) -> bool { return static_cast<bool>(lhs == rhs); }
1352 template<typename T>
1353 auto compareEqual( T* const& lhs, int rhs ) -> bool { return lhs == reinterpret_cast<void const*>( rhs ); }
1354 template<typename T>

Callers 1

operator ==Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected