diff --git a/.gitignore b/.gitignore index 13b46bf8..3a6739eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # ====================================================== # CUSTOM IGNORE # ====================================================== -.vscopde/ handbook/ lib/ diff --git a/src/std/Deque.ts b/src/std/Deque.ts index b46833c2..6615b636 100644 --- a/src/std/Deque.ts +++ b/src/std/Deque.ts @@ -542,10 +542,10 @@ namespace std // ERASE LAST ELEMENT let lastArray: Array = this.matrix_[this.matrix_.length - 1]; - lastArray.splice(lastArray.length - 1, 1); + lastArray.pop(); if (lastArray.length == 0 && this.matrix_.length > 1) - this.matrix_.splice(this.matrix_.length - 1, 1); + this.matrix_.pop(); // SHRINK SIZE this.size_--; diff --git a/src/std/Vector.ts b/src/std/Vector.ts index fc6d6f2a..f0b05fa2 100644 --- a/src/std/Vector.ts +++ b/src/std/Vector.ts @@ -568,7 +568,7 @@ namespace std */ public pop_back(): void { - this.erase(this.end().prev()); + this.data_.pop(); } /**