| VF_delete | VD_delete | VE_delete |
| VCF_delete | VCD_delete | VCE_delete |
| VPF_delete | VPD_delete | VPE_delete |
| VI_delete | VSI_delete | VLI_delete | VQI_delete |
| VU_delete | VUS_delete | VUL_delete | VUI_delete |
|
| Function | Delete 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/Delphi | uses VFstd;
procedure VF_delete( X:fVector; size, pos:UInt ); |
|
| Description | This 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. |
|
|
|
|