Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 876 Bytes

File metadata and controls

48 lines (35 loc) · 876 Bytes

is_class_template

  • meta[meta header]
  • std::meta[meta namespace]
  • function[meta id-type]
  • cpp26[meta cpp]
namespace std::meta {
  consteval bool is_class_template(info r);
}
  • info[link info.md]

概要

クラステンプレートであるかを判定する。

戻り値

rがクラステンプレートを表す場合にtrueを返す。

#include <meta>
#include <vector>

int main() {
  static_assert(std::meta::is_class_template(^^std::vector));
}

出力

バージョン

言語

  • C++26

処理系

参照