Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Field::Field(const Field& f)
- {
- pFirst = new T[f.capacity()];
- pLast = pFirst + (f.pLast - f.pFirst);
- pEnd = pFirst + (f.pEnd - f.pFirst);
- std::copy(f.pFirst, f.pLast, pFirst);
- }
- private:
- T *pFirst,*pLast,*pEnd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement