X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fex.h;h=14cfd5b54eb1f1ae8b6c3561bdd81a6520954ff2;hp=208151df99fbc97616bbc1d74b3b89f5b1de187f;hb=06e1c4cc6967333ae1597d5e08dd1865ba64c1b2;hpb=b4587b7587c5660705e755a853253b4159acfda1 diff --git a/ginac/ex.h b/ginac/ex.h index 208151df..14cfd5b5 100644 --- a/ginac/ex.h +++ b/ginac/ex.h @@ -484,6 +484,10 @@ struct ex_is_equal : public std::binary_function { bool operator() (const ex &lh, const ex &rh) const { return lh.is_equal(rh); } }; +struct op0_is_equal : public std::binary_function { + bool operator() (const ex &lh, const ex &rh) const { return lh.op(0).is_equal(rh.op(0)); } +}; + struct ex_swap : public std::binary_function { void operator() (ex &lh, ex &rh) const { lh.swap(rh); } };