Correct methods that were not as per the standard
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b772aa2e24
commit
08a45afc1b
1 changed files with 5 additions and 7 deletions
|
|
@ -23,8 +23,6 @@
|
||||||
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
||||||
class iterator;
|
class iterator;
|
||||||
class reverse_iterator;
|
class reverse_iterator;
|
||||||
class const_iterator;
|
|
||||||
class const_reverse_iterator;
|
|
||||||
|
|
||||||
iterator begin();
|
iterator begin();
|
||||||
iterator end();
|
iterator end();
|
||||||
|
|
@ -34,17 +32,17 @@
|
||||||
void erase(iterator pos);
|
void erase(iterator pos);
|
||||||
void erase(iterator first, iterator last);
|
void erase(iterator first, iterator last);
|
||||||
|
|
||||||
const_iterator find(const key_type& x);
|
iterator find(const key_type& x);
|
||||||
const_iterator lower_bound(const key_type& x);
|
iterator lower_bound(const key_type& x);
|
||||||
const_iterator upper_bound(const key_type& x);
|
iterator upper_bound(const key_type& x);
|
||||||
std::pair<const_iterator,const_iterator> equal_range(const key_type& x);
|
std::pair<iterator,iterator> equal_range(const key_type& x);
|
||||||
#endif
|
#endif
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
%define %std_set_methods(set...)
|
%define %std_set_methods(set...)
|
||||||
%std_set_methods_common(set);
|
%std_set_methods_common(set);
|
||||||
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
||||||
std::pair<const_iterator,bool> insert(const value_type& __x);
|
std::pair<iterator,bool> insert(const value_type& __x);
|
||||||
#endif
|
#endif
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue