]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.h
* Fix thinkos in print_csrc context.
[ginac.git] / ginac / ex.h
index c76290ff1ceb0a04a2dbdc21597d1e49ecffa8ca..e819d13f10544eb8f34e44bf370c3b2995299399 100644 (file)
 #ifndef __GINAC_EX_H__
 #define __GINAC_EX_H__
 
+#include <iosfwd>
+#include <functional>
+
 #include "basic.h"
 #include "operators.h"
 
-#include <functional>
-
 namespace GiNaC {
 
 /** Helper class to initialize the library.  There must be one static object
@@ -343,6 +344,11 @@ bool ex::is_equal(const ex & other) const
 
 
 // utility functions
+
+/** Compare two objects of class quickly without doing a deep tree traversal.
+ *  @return "true" if they are equal
+ *          "false" if equality cannot be established quickly (e1 and e2 may
+ *          still be equal, in this case. */
 inline bool are_ex_trivially_equal(const ex &e1, const ex &e2)
 {
        return e1.bp == e2.bp;