Logo Search packages:      
Sourcecode: ragel version File versions

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

Insert one new element using the default constrcutor.

Elements in the vector from pos onward are shifted one space to the right. The default constructor is used to init 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 99 of file svectcommon.h.

{ insertNew(pos, 1); }

Generated by  Doxygen 1.6.0   Back to index