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
|
|
@ -30,7 +30,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;
|
||||
|
|
|
|||
|
|
@ -116,8 +116,10 @@ public void capacity(size_t value) {
|
|||
size_type size() const;
|
||||
size_type capacity() const;
|
||||
void reserve(size_type n) throw (std::length_error);
|
||||
|
||||
vector();
|
||||
vector(const vector &other);
|
||||
|
||||
%extend {
|
||||
vector(size_type capacity) throw (std::length_error) {
|
||||
std::vector< CTYPE >* pv = 0;
|
||||
|
|
@ -461,8 +463,10 @@ int opApply(int delegate(ref size_t index, ref $typemap(dtype, CTYPE) value) dg)
|
|||
size_type size() const;
|
||||
size_type capacity() const;
|
||||
void reserve(size_type n) throw (std::length_error);
|
||||
|
||||
vector();
|
||||
vector(const vector &other);
|
||||
|
||||
%extend {
|
||||
vector(size_type capacity) throw (std::length_error) {
|
||||
std::vector< CTYPE >* pv = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue