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.hxx
ViewVC logotype

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

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

revision 4353, Wed Aug 3 14:26:32 2016 UTC revision 4354, Wed Aug 3 14:26:58 2016 UTC
# Line 123  Line 123 
123          : _seq(std::make_shared<std::vector<T>>(std::vector<T>()))          : _seq(std::make_shared<std::vector<T>>(std::vector<T>()))
124      {      {
125          this->_seq->reserve (n);          this->_seq->reserve (n);
126          std::memcpy (this->_seq->data(), data, n * sizeof(T));          for (int i = 0;  i < n;  i++) {
127                this->_seq->push_back(data[i]);
128            }
129      }      }
130    
131      template <typename T>      template <typename T>

Legend:
Removed from v.4353  
changed lines
  Added in v.4354

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