Skip to content

Commit

Permalink
Add additional checks to Vector class methods (#1721)
Browse files Browse the repository at this point in the history
* Add additional checks to `Vector` class methods

* #1618 (comment)
* Change `ensureCapacity` to adjust new capacity by `increment`, thus simplifying code which uses it
* Add `bool` return value to:
	`addElement()` - so that `add()` return value isn't meaningless
	`ensureCapacity()`
	`setSize()`
	`insertElementAt()`
	`setElementAt()`

* Apply coding style and fix use of parentheses
  • Loading branch information
mikee47 authored and slaff committed Jun 16, 2019
1 parent 68e73c3 commit 7313c49
Showing 1 changed file with 297 additions and 323 deletions.
Loading

0 comments on commit 7313c49

Please sign in to comment.