/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/java/cpp17_class_template_argument_deduction_runme.java
23 строки
914 B
William S Fulton
C++17: parse user-defined deduction guides
30 май 2026, 12:56
30 май 2026, 12:56
86b46b3
Код
Авторство
О чём код?
import cpp17_class_template_argument_deduction.*; public class cpp17_class_template_argument_deduction_runme { static { try { System.loadLibrary("cpp17_class_template_argument_deduction"); } 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[]) { // The CTAD variables 'ov' and 'bx' are skipped (Warning 347); declarations alongside them wrap. if (cpp17_class_template_argument_deduction.unaffected(41) != 42) throw new RuntimeException("unaffected(41)"); // The deduction guides emit nothing; a declaration following them still wraps. if (cpp17_class_template_argument_deduction.after_guides(40) != 42) throw new RuntimeException("after_guides(40)"); } }