test vectors of primitive types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3db5c253df
commit
b32dd09384
1 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
%module li_std_vector
|
||||
|
||||
%include "std_vector.i"
|
||||
%include "std_string.i"
|
||||
|
||||
%{
|
||||
#include <algorithm>
|
||||
|
|
@ -12,7 +13,17 @@ namespace std {
|
|||
%template(IntVector) vector<int>;
|
||||
}
|
||||
|
||||
%template(BoolVector) std::vector<bool>;
|
||||
%template(CharVector) std::vector<char>;
|
||||
%template(ShortVector) std::vector<short>;
|
||||
%template(LongVector) std::vector<long>;
|
||||
%template(UCharVector) std::vector<unsigned char>;
|
||||
%template(UIntVector) std::vector<unsigned int>;
|
||||
%template(UShortVector) std::vector<unsigned short>;
|
||||
%template(ULongVector) std::vector<unsigned long>;
|
||||
%template(DoubleVector) std::vector<double>;
|
||||
%template(StringVector) std::vector<std::string>;
|
||||
|
||||
|
||||
%inline %{
|
||||
typedef float Real;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue