MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator <=

Method operator <=

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

Source from the content-addressed store, hash-verified

2105
2106 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2107 friend bool operator <= ( T const& lhs, Approx const& rhs ) {
2108 return static_cast<double>(lhs) < rhs.m_value || lhs == rhs;
2109 }
2110
2111 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2112 friend bool operator <= ( Approx const& lhs, T const& rhs ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected