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

@ -197,7 +197,7 @@ namespace std {
typedef const value_type& const_reference;
list();
list(const list<T>& other);
list(const list& other);
unsigned int size() const;
bool empty() const;
@ -350,7 +350,7 @@ namespace std {
typedef const value_type& const_reference;
list();
list(const list<T>& other);
list(const list& other);
unsigned int size() const;
bool empty() const;

View file

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

View file

@ -190,7 +190,7 @@ namespace std {
vector(unsigned int size = 0);
vector(unsigned int size, const T& value);
vector(const vector<T>& other);
vector(const vector& other);
unsigned int size() const;
bool empty() const;
@ -367,7 +367,7 @@ namespace std {
vector(unsigned int size = 0);
vector(unsigned int size, T *value);
vector(const vector<T *>& other);
vector(const vector& other);
unsigned int size() const;
bool empty() const;
@ -543,7 +543,7 @@ namespace std {
vector(unsigned int size = 0);
vector(unsigned int size, T value);
vector(const vector<T>& other);
vector(const vector& other);
unsigned int size() const;
bool empty() const;