/tags/rel-1-3-26/SWIG/Examples/test-suite/template_type_namespace.i
Swig | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | c980d01178fcbf128d5300a4f057f65a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module template_type_namespace
- %warnfilter(801) std::vector<std::string>; // Ruby, wrong class name
- %include std_string.i
- %include std_vector.i
-
- %template(string_vector) std::vector<std::string>;
-
- %inline %{
- std::vector<std::string> foo() {
- return std::vector<std::string>(1,"foo");
- }
- %}