Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/lib/include/diderot/dynseq-inst.hxx
ViewVC logotype

Diff of /branches/vis15/src/lib/include/diderot/dynseq-inst.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5115, Tue Jul 18 19:30:09 2017 UTC revision 5116, Tue Jul 18 21:32:07 2017 UTC
# Line 173  Line 173 
173          return cp + nbytes;          return cp + nbytes;
174      }      }
175    
   // printer for dynamic sequences of booleans  
     static std::ostream& operator<< (std::ostream &outs, dynseq<bool> const &seq)  
     {  
         outs << "{";  
         size_t n = seq.length();  
         if (n > 0) {  
             outs << (seq[0] ? "true" : "false");  
             for (size_t i = 1;  i < n;  i++) {  
                 outs << "," << (seq[i] ? "true" : "false");  
             }  
         }  
         outs << "}";  
         return outs;  
     }  
   
176    // printer for dynamic sequences    // printer for dynamic sequences
177      template <typename T>      template <typename T>
178      static std::ostream& operator<< (std::ostream &outs, dynseq<T> const &seq)      static std::ostream& operator<< (std::ostream &outs, dynseq<T> const &seq)

Legend:
Removed from v.5115  
changed lines
  Added in v.5116

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0