/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/cpp11_rvalue_reference.i
21 строка
476 B
William S Fulton
Add int&& typemaps for Go
02 ноя 2025, 15:56
02 ноя 2025, 15:56
b5d216a
Код
Авторство
О чём код?
// This testcase checks whether SWIG correctly parses C++11 rvalue references. %module cpp11_rvalue_reference %inline %{ #include <utility> class A { public: int getAcopy() { return _a; } int *getAptr() { return &_a; } int &getAref() { return _a; } int &&getAmove() { return std::move(_a); } void setAcopy(int a) { _a = a; } void setAptr(int *a) { _a = *a; } void setAref(int &a) { _a = a; } void setAmove(int &&a) { _a = a; } private: int _a; }; %}