最終更新日時(UTC):
が更新

履歴 編集

function
<meta>

std::meta::has_unique_object_representations(C++26)

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

処理系

関連項目

参照