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
|
|
@ -21,6 +21,8 @@ namespace std {
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
list();
|
||||
list(const list& other);
|
||||
|
||||
size_type size() const;
|
||||
bool empty() const;
|
||||
%rename(isEmpty) empty;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ namespace std {
|
|||
typedef const value_type& const_reference;
|
||||
|
||||
map();
|
||||
map(const map< K, T, C >& other);
|
||||
map(const map& other);
|
||||
|
||||
unsigned int size() const;
|
||||
bool empty() const;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ namespace std {
|
|||
|
||||
vector();
|
||||
vector(size_type n);
|
||||
vector(const vector& other);
|
||||
|
||||
size_type size() const;
|
||||
size_type capacity() const;
|
||||
void reserve(size_type n);
|
||||
|
|
@ -60,6 +62,8 @@ namespace std {
|
|||
|
||||
vector();
|
||||
vector(size_type n);
|
||||
vector(const vector& other);
|
||||
|
||||
size_type size() const;
|
||||
size_type capacity() const;
|
||||
void reserve(size_type n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue