/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/java/cpp14_generic_lambda_runme.java
23 строки
681 B
William S Fulton
C++14/20: parse auto parameters in functions and lambdas
13 май 2026, 01:04
13 май 2026, 01:04
0d88926
Код
Авторство
О чём код?
import cpp14_generic_lambda.*; public class cpp14_generic_lambda_runme { static { try { System.loadLibrary("cpp14_generic_lambda"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { // Single auto parameter. if (cpp14_generic_lambda.run_twice(5) != 10) throw new RuntimeException("run_twice(5)"); // Two auto parameters. if (cpp14_generic_lambda.run_add(3, 4) != 7) throw new RuntimeException("run_add(3, 4)"); } }