aboutsummaryrefslogtreecommitdiff
path: root/src/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.h')
-rw-r--r--src/array.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/array.h b/src/array.h
index 604f8a6..39efb9e 100644
--- a/src/array.h
+++ b/src/array.h
@@ -488,6 +488,18 @@ namespace Bu
488 core->erase( i.iPos ); 488 core->erase( i.iPos );
489 } 489 }
490 490
491 void eraseLast()
492 {
493 _hardCopy();
494 core->erase( core->iSize-1 );
495 }
496
497 void eraseFirst()
498 {
499 _hardCopy();
500 core->erase( 0 );
501 }
502
491 /** 503 /**
492 * In order to make swapErase faster, what it does is swap the given 504 * In order to make swapErase faster, what it does is swap the given
493 * item in the array with the last item, then make the array shorter 505 * item in the array with the last item, then make the array shorter