Add support for slicing steps to Python STL wrappers (positive step only atm - these work the same as other Python sequences such as list)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
459e083b3d
commit
1b47ddf8f0
4 changed files with 178 additions and 47 deletions
|
|
@ -465,6 +465,7 @@ CPP_STD_TEST_CASES += \
|
|||
director_string \
|
||||
ignore_template_constructor \
|
||||
li_std_combinations \
|
||||
li_std_containers_int \
|
||||
li_std_deque \
|
||||
li_std_except \
|
||||
li_std_map \
|
||||
|
|
|
|||
12
Examples/test-suite/li_std_containers_int.i
Normal file
12
Examples/test-suite/li_std_containers_int.i
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
%module li_std_containers_int
|
||||
|
||||
//
|
||||
// Test containers of type int
|
||||
//
|
||||
|
||||
%include std_vector.i
|
||||
%include std_list.i
|
||||
|
||||
%template(vector_int) std::vector<int>;
|
||||
%template(list_int) std::list<int>;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue