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
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue