DDeepin Developerfeat: Init commit
b83cb584创建于 2022年10月19日历史提交
%module li_std_vector_member_var

%include "std_vector.i"

%template(vectorDbl) std::vector<double>;

%inline %{
#include <vector>

typedef std::vector<double> DblVector;

struct Test {
    DblVector v;
    int x;

    Test() : x(0) { }

    void f(int n) {
        x += n;
        v.push_back(1.0 / n);
    }
};

// Regression test for SF#3528035:
struct S {
    int x;
    S() : x(4) { }
};

struct T {
    S start_t;
    unsigned length;
};
%}