namespace std::meta {
consteval bool has_unique_object_representations(info type);
}
概要
型が一意なオブジェクト表現を持つかを判定する。std::has_unique_object_representationsに対応する。
戻り値
typeが表す型が一意なオブジェクト表現を持つ場合にtrueを返す。
例外
typeが型を表さない場合、std::meta::exception例外を送出する。
例
#include <meta>
int main() {
static_assert(std::meta::has_unique_object_representations(^^int));
}
出力
バージョン
言語
- C++26
処理系
- Clang: ??
- GCC: 16 (
-freflectionオプション指定) ✅ - Visual C++: ??