Add some missing STL container typedefs for Perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
049035ff3e
commit
c20cacad87
4 changed files with 27 additions and 2 deletions
|
|
@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.8 (in progress)
|
||||
===========================
|
||||
|
||||
2012-08-15: wsfulton
|
||||
[Perl] Add size_type, value_type, const_reference to the STL containers.
|
||||
|
||||
2012-08-15: wsfulton
|
||||
[Python] Add discard and add methods to std::set wrappers so that pyabc.i can be used ensuring
|
||||
MutableSet is a valid abstract base class for std::set. As reported by Alexey Sokolov.
|
||||
|
|
|
|||
|
|
@ -188,6 +188,10 @@ namespace std {
|
|||
}
|
||||
}
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef T value_type;
|
||||
typedef const value_type& const_reference;
|
||||
|
||||
list();
|
||||
list(const list<T> &);
|
||||
|
||||
|
|
@ -337,6 +341,10 @@ namespace std {
|
|||
}
|
||||
}
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef T value_type;
|
||||
typedef const value_type& const_reference;
|
||||
|
||||
list();
|
||||
list(const list<T> &);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,6 +180,9 @@ namespace std {
|
|||
}
|
||||
}
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef T value_type;
|
||||
typedef const value_type& const_reference;
|
||||
vector(unsigned int size = 0);
|
||||
vector(unsigned int size, const T& value);
|
||||
vector(const vector<T> &);
|
||||
|
|
@ -349,6 +352,9 @@ namespace std {
|
|||
}
|
||||
}
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef T value_type;
|
||||
typedef const value_type& const_reference;
|
||||
vector(unsigned int size = 0);
|
||||
vector(unsigned int size, T *value);
|
||||
vector(const vector<T *> &);
|
||||
|
|
@ -517,6 +523,9 @@ namespace std {
|
|||
}
|
||||
}
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
typedef T value_type;
|
||||
typedef const value_type& const_reference;
|
||||
vector(unsigned int size = 0);
|
||||
vector(unsigned int size, T value);
|
||||
vector(const vector<T> &);
|
||||
|
|
|
|||
|
|
@ -25,8 +25,13 @@
|
|||
*/
|
||||
|
||||
%define %std_deque_methods_noempty(T)
|
||||
typedef T &reference;
|
||||
typedef const T& const_reference;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef T value_type;
|
||||
typedef value_type* pointer;
|
||||
typedef const value_type* const_pointer;
|
||||
typedef value_type& reference;
|
||||
typedef const value_type& const_reference;
|
||||
|
||||
deque();
|
||||
deque(unsigned int size, const T& value=T());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue