]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.cpp
inlined ex::swap() and provided versions of iter_swap() for ex and expair
[ginac.git] / ginac / ex.cpp
index b22ceef802be608c3f110796ee6ac09d56060ee3..c41abee74b5131ea157c9b0b27d842016caddd5c 100644 (file)
@@ -48,19 +48,6 @@ namespace GiNaC {
 
 // public
        
-/** Efficiently swap the contents of two expressions. */
-void ex::swap(ex & other)
-{
-       GINAC_ASSERT(bp!=0);
-       GINAC_ASSERT(bp->flags & status_flags::dynallocated);
-       GINAC_ASSERT(other.bp!=0);
-       GINAC_ASSERT(other.bp->flags & status_flags::dynallocated);
-       
-       basic * tmpbp = bp;
-       bp = other.bp;
-       other.bp = tmpbp;
-}
-
 /** Print expression to stream. The formatting of the output is determined
  *  by the kind of print_context object that is passed. Possible formattings
  *  include ginsh-parsable output (the default), tree-like output for