static constexpr float
时间: 2023-08-16 20:16:36 浏览: 176
根据引用\[1\]和引用\[3\]的内容,static constexpr float是一个静态的常量表达式浮点型数据成员。它必须在类内进行初始化,并且在类外再次定义一次。
#### 引用[.reference_title]
- *1* *3* [static const与static constexpr的类内数据成员初始化](https://blog.csdn.net/qq_21237549/article/details/125437717)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [[c++11]静态成员在类中的初始化总结(static,static const,static constexpr)](https://blog.csdn.net/qq_50868258/article/details/123139071)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文