Logo Search packages:      
Sourcecode: ragel version File versions

template<class T, class Resize = ResizeExpn>
SVector< T, Resize >::replaceNew ( long  pos  )  [inline]

Replace at position pos with one new element.

If there is an existing element at the position to be replaced (pos is less than the length of the vector) then the element's destructor is called before the space is used. The default constructor is used to initialize the new element. If pos is greater than the length of the vector then undefined behaviour results. If pos is negative, then it is treated as an offset relative to the length of the vector.

Definition at line 127 of file svectcommon.h.

{ replaceNew(pos, 1); }

Generated by  Doxygen 1.6.0   Back to index