is_floating_point
时间: 2023-09-12 15:04:44 浏览: 166
floating-point-alternative-.rar_floating
is_floating_point是用于判断一个类型是否为浮点类型的类型特征。该特征类模板定义了一个bool类型的静态成员变量value,如果传入的类型是浮点类型,则value的值为true,否则为false。is_floating_point的实现参考了integral_constant类模板,并通过对具体浮点类型的特化来实现判断。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* *2* [C++【type traits】 | 基本使用](https://blog.csdn.net/weixin_45926547/article/details/124257242)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文