Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Field::Field(const Field& f)
  2. {
  3. pFirst = new T[f.capacity()];
  4.  
  5. pLast = pFirst + (f.pLast - f.pFirst);
  6. pEnd = pFirst + (f.pEnd - f.pFirst);
  7. std::copy(f.pFirst, f.pLast, pFirst);
  8. }
  9.  
  10. private:
  11. T *pFirst,*pLast,*pEnd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement