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:UIntSize );
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_delete( fVector d_X, ui size, ui pos );
void VFcu_delete( fVector h_X, ui size, ui pos );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_delete( d_X:fVector; size, pos:UIntSize ): IntBool;
procedure VFcu_delete( h_X:fVector; size, pos:UIntSize );
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