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

履歴 編集

function
<meta>

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

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

概要

値であるかを判定する。

戻り値

rが値を表す場合にtrueを返す。

#include <meta>

int main() {
  constexpr auto r = std::meta::reflect_constant(42);
  static_assert(std::meta::is_value(r));
}

出力

バージョン

言語

  • C++26

処理系

参照