Add STL container copy constructors where missing
Also provide consistent copy constructor declarations.
This commit is contained in:
parent
dc34c39c53
commit
6d27ead9c0
36 changed files with 72 additions and 43 deletions
|
|
@ -177,7 +177,8 @@ namespace std {
|
|||
};
|
||||
|
||||
list();
|
||||
list(const list &other);
|
||||
list(const list& other);
|
||||
|
||||
%rename(isEmpty) empty;
|
||||
bool empty() const;
|
||||
void clear();
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ template<class KeyType, class MappedType, class Comparator = std::less<KeyType>
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
map();
|
||||
map(const map<KeyType, MappedType, Comparator >& other);
|
||||
map(const map& other);
|
||||
|
||||
struct iterator {
|
||||
%typemap(javaclassmodifiers) iterator "protected class"
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class set {
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
set();
|
||||
set(const set<T>& other);
|
||||
set(const set& other);
|
||||
|
||||
%rename(isEmpty) empty;
|
||||
bool empty() const;
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ template<class KeyType, class MappedType > class unordered_map {
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
unordered_map();
|
||||
unordered_map(const unordered_map<KeyType, MappedType >& other);
|
||||
unordered_map(const unordered_map& other);
|
||||
|
||||
struct iterator {
|
||||
%typemap(javaclassmodifiers) iterator "protected class"
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class unordered_set {
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
unordered_set();
|
||||
unordered_set(const unordered_set<T>& other);
|
||||
unordered_set(const unordered_set& other);
|
||||
|
||||
%rename(isEmpty) empty;
|
||||
bool empty() const;
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ SWIGINTERN jint SWIG_VectorSize(size_t size) {
|
|||
|
||||
vector();
|
||||
vector(const vector &other);
|
||||
|
||||
size_type capacity() const;
|
||||
void reserve(size_type n) throw (std::length_error);
|
||||
%rename(isEmpty) empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue