namespace std::meta {
consteval bool is_floating_point_type(info type);
}
概要
浮動小数点数型であるかを判定する。
戻り値
typeが浮動小数点数型を表す場合にtrueを返す。
例外
typeが型を表さない場合、std::meta::exception例外を送出する。
例
#include <meta>
int main() {
static_assert(std::meta::is_floating_point_type(^^double));
static_assert(!std::meta::is_floating_point_type(^^int));
}
出力
バージョン
言語
- C++26
処理系
- Clang: ??
- GCC: 16 (
-freflectionオプション指定) ✅ - Visual C++: ??