Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.04 KB

File metadata and controls

57 lines (41 loc) · 1.04 KB

reflect_function

  • meta[meta header]
  • std::meta[meta namespace]
  • function template[meta id-type]
  • cpp26[meta cpp]
namespace std::meta {
  template <class T>
  consteval info reflect_function(T& fn);
}
  • info[link info.md]

概要

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

戻り値

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

#include <meta>

void my_func() {}

int main() {
  constexpr auto r = std::meta::reflect_function(my_func);
  static_assert(std::meta::is_function(r));
}
  • std::meta::is_function[link is_function.md]

出力

バージョン

言語

  • C++26

処理系

関連項目

参照