ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/estl.h
(Generate patch)

Comparing libptytty/src/estl.h (file contents):
Revision 1.5 by sf-exg, Sat Jan 21 15:06:56 2012 UTC vs.
Revision 1.7 by root, Thu May 17 18:06:38 2012 UTC

101 _buf = nbuf; 101 _buf = nbuf;
102 _size = sz; 102 _size = sz;
103 } 103 }
104 } 104 }
105 105
106 void resize (size_type sz)
107 {
108 reserve (sz);
109 _last = sz;
110 }
111
106 simplevec () 112 simplevec ()
107 : _last(0), _size(0), _buf(0) 113 : _last(0), _size(0), _buf(0)
108 { 114 {
109 } 115 }
110 116
199 long at = pos - begin (); 205 long at = pos - begin ();
200 206
201 if (n > 0) 207 if (n > 0)
202 { 208 {
203 reserve (pos, n); 209 reserve (pos, n);
204 pos = begin ()+at; 210 pos = begin () + at;
205 memcpy (pos, first, (last - first) * sizeof (T)); 211 memcpy (pos, first, (last - first) * sizeof (T));
206 _last += n; 212 _last += n;
207 } 213 }
208 214
209 return pos; 215 return pos;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines