创建一个const的引用,const_cast用于移除const属性。
用于表示一个可选的值,即一个值可能存在,也可能不存在。 可以很轻松的判断到底是有返回值还是没有 可以使用*符号解引用里面的值。 std::nullopt等同于{} 参考 https://en.cppreference.com/w/cpp/utility/optional
#表示将其后的内容转换为字符串,即加上双引号。 #define example(instr) printf("the input string is:%s",#instr) #define example1(instr) #instr 当使用该宏定义时: example(abc); 在编译时将会展开成:printf("the input string is:%s","abc"); str...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Template = 1 << 0, MainType = 0x0000FFFF, Basic = 0x10000 << 0, SubType = 0xFFFF0000, TemplateBasic = Template | Basic, #defin...
AI系列2:ChatGPT介绍
Qt官方示例解析系列8:Flow Layout流式布局