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

履歴 編集

function
<meta>

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

namespace std::meta {
  consteval bool is_complete_type(info r);
}

概要

型が完全型であるかを判定する。

戻り値

r完全型を表す場合にtrueを返す。

#include <meta>

struct S { int x; };
struct Incomplete;

int main() {
  static_assert(std::meta::is_complete_type(^^S));
}

出力

バージョン

言語

  • C++26

処理系

参照