Add STL container copy constructors where missing

Also provide consistent copy constructor declarations.
This commit is contained in:
William S Fulton 2019-02-14 18:53:05 +00:00
commit 6d27ead9c0
36 changed files with 72 additions and 43 deletions

View file

@ -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;

View file

@ -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;