diff options
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r-- | src/misc/vec/vecInt.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 60352a0f..5222ef53 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -888,6 +888,26 @@ static inline int Vec_IntRemove( Vec_Int_t * p, int Entry ) /**Function************************************************************* + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline void Vec_IntDrop( Vec_Int_t * p, int i ) +{ + int k; + assert( i >= 0 && i < Vec_IntSize(p) ); + p->nSize--; + for ( k = i; k < p->nSize; k++ ) + p->pArray[k] = p->pArray[k+1]; +} + +/**Function************************************************************* + Synopsis [Interts entry at the index iHere. Shifts other entries.] Description [] |