开发者

Why are there two nested curly braces without any statement in-between?

开发者 https://www.devze.com 2023-02-06 22:02 出处:网络
The code given below is the code generated by MOC in Qt. const QMetaObject MainWindow::staticMetaObject = {

The code given below is the code generated by MOC in Qt.

const QMetaObject MainWindow::staticMetaObject = { 开发者_StackOverflow中文版 { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow, qt_meta_data_MainWindow, 0 } };

Why is there two continuous curly braces without anything statement in-between? Also, what does the statement mean? Just comma separated variable means anything?


I think it is initializing a list (external braces) of structure (internal braces.)

0

精彩评论

暂无评论...
验证码 换一张
取 消