ImageEn, unit ievision

TIEVisionBaseVector.erase

TIEVisionBaseVector.erase


Declaration

function erase(position: uint32_t): uint32_t; overload; safecall;
function erase(first: uint32_t; last: uint32_t): uint32_t; overload; safecall;


Description

Remove a specified item or a range of items.
Returns the first element remaining beyond any elements removed.

Parameter Description
position The item index to remove
first Begin of range to erase
last End of range (not included) to erase


Example

// removes item 0 (first item)
vector1.erase(0);

// removes item 0 up to 3 (included)
vector1.erase(0, 4);