VF_deleteVD_deleteVE_delete
VCF_deleteVCD_deleteVCE_delete
VPF_deleteVPD_deleteVPE_delete
VI_deleteVSI_deleteVLI_deleteVQI_delete
VU_deleteVUS_deleteVUL_deleteVUI_delete
FunctionDelete one element from a vector
Syntax C/C++#include <VFstd.h>
void VF_delete( fVector X, ui size, ui pos );
C++ VecObj#include <OptiVec.h>
void vector<T>::delete( ui pos );
Pascal/Delphiuses VFstd;
procedure VF_delete( X:fVector; size, pos:UInt );
DescriptionThis is one of the few functions where the input vector itself is changed, instead of being mapped onto an output vector. The element numbered pos is deleted from the vector, and all the following elements are shifted one position lower; the last element is left undefined.
Error handlingnone
Return valuenone
See alsoVF_rotate,   VF_insert

VectorLib Table of Contents  OptiVec home