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

@ -35,7 +35,7 @@ namespace std {
map();
map(const map< K, T, C >& other);
map(const map& other);
unsigned int size() const;
bool empty() const;

View file

@ -23,6 +23,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,9 +62,10 @@ namespace std {
typedef value_type& reference;
typedef bool const_reference;
vector();
vector(size_type n);
vector(const vector& other);
size_type size() const;
size_type capacity() const;
void reserve(size_type n);

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

@ -23,6 +23,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);
@ -62,6 +64,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);