Our less operator (<)
:
More...
#include <basic.h>
|
bool | operator() (const RCP< const Basic > &x, const RCP< const Basic > &y) const |
| true if x < y , false otherwise
|
|
Our less operator (<)
:
Definition at line 228 of file basic.h.
◆ operator()()
bool SymEngine::RCPBasicKeyLess::operator() |
( |
const RCP< const Basic > & |
x, |
|
|
const RCP< const Basic > & |
y |
|
) |
| const |
|
inline |
true if x < y
, false otherwise
Definition at line 230 of file basic.h.
231 {
232 hash_t xh = x->hash(), yh = y->hash();
233 if (xh != yh)
234 return xh < yh;
236 return false;
237 return x->__cmp__(*y) == -1;
238 }
bool eq(const Basic &a, const Basic &b)
Checks equality for a and b
The documentation for this struct was generated from the following file:
- /home/runner/work/symengine/symengine/symengine/basic.h