Fixed renames of std_* containers to a safer
%rename directive. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50c035fb07
commit
d4eec2670b
9 changed files with 90 additions and 4 deletions
|
|
@ -27,5 +27,15 @@
|
|||
#define %swig_list_methods(Type...) %swig_sequence_methods(Type)
|
||||
#define %swig_list_methods_val(Type...) %swig_sequence_methods_val(Type);
|
||||
|
||||
|
||||
%rename("delete") std::list::__delete__;
|
||||
%rename("reject!") std::list::reject_bang;
|
||||
%rename("map!") std::list::map_bang;
|
||||
%rename("empty?") std::list::empty;
|
||||
%rename("include?" ) std::list::__contains__ const;
|
||||
%rename("has_key?" ) std::list::has_key const;
|
||||
|
||||
%alias std::list::push "<<";
|
||||
|
||||
%include <std/std_list.i>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue