Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 875 Bytes

File metadata and controls

50 lines (36 loc) · 875 Bytes

is_object

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

概要

オブジェクトであるかを判定する。

戻り値

rがオブジェクトを表す場合にtrueを返す。

#include <meta>

static int obj = 0;

int main() {
  constexpr auto r = std::meta::object_of(^^obj);
  static_assert(std::meta::is_object(r));
}

出力

バージョン

言語

  • C++26

処理系

参照