Handle length_error exceptions in Java std::vector::reserve
This commit is contained in:
parent
6daed2cea1
commit
3af40e7423
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ SWIGINTERN jint SWIG_VectorSize(size_t size) {
|
||||||
vector();
|
vector();
|
||||||
vector(const vector &other);
|
vector(const vector &other);
|
||||||
size_type capacity() const;
|
size_type capacity() const;
|
||||||
void reserve(size_type n);
|
void reserve(size_type n) throw (std::length_error);
|
||||||
%rename(isEmpty) empty;
|
%rename(isEmpty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue