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

履歴 編集

function template
<meta>

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

namespace std::meta {
  template <class T>
  consteval info reflect_function(T& fn);
}

概要

関数からリフレクションを生成する。

戻り値

関数fnを表すリフレクションを返す。

#include <meta>

void my_func() {}

int main() {
  constexpr auto r = std::meta::reflect_function(my_func);
  static_assert(std::meta::is_function(r));
}

出力

バージョン

言語

  • C++26

処理系

関連項目

参照