]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.cpp
[nitpick] inifcns_nstdsums: don't use int instead of std::size_t.
[ginac.git] / ginac / ex.cpp
index 23a30833b5a436375918e34358a4208376cf00d6..377b15b411745057cc61fb187468aee19eab9e5d 100644 (file)
@@ -95,7 +95,7 @@ ex ex::diff(const symbol & s, unsigned nth) const
 /** Check whether expression matches a specified pattern. */
 bool ex::match(const ex & pattern) const
 {
-       lst repl_lst;
+       exmap repl_lst;
        return bp->match(pattern, repl_lst);
 }
 
@@ -103,12 +103,10 @@ bool ex::match(const ex & pattern) const
  *  the "found" list. If the expression itself matches the pattern, the
  *  children are not further examined. This function returns true when any
  *  matches were found. */
-bool ex::find(const ex & pattern, lst & found) const
+bool ex::find(const ex & pattern, exset& found) const
 {
        if (match(pattern)) {
-               found.append(*this);
-               found.sort();
-               found.unique();
+               found.insert(*this);
                return true;
        }
        bool any_found = false;