From 286dc953c1e0e4a75589e4068e29a317a03f23dd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 25 May 2010 05:42:26 +0000 Subject: More myriad tests and features, passes perfectly so far. --- src/array.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/array.h') 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 core->erase( i.iPos ); } + void eraseLast() + { + _hardCopy(); + core->erase( core->iSize-1 ); + } + + void eraseFirst() + { + _hardCopy(); + core->erase( 0 ); + } + /** * In order to make swapErase faster, what it does is swap the given * item in the array with the last item, then make the array shorter -- cgit v1.2.3