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

履歴 編集

function
<meta>

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

namespace std::meta {
  consteval info remove_pointer(info type);
}

概要

型からポインタを除去する。std::remove_pointerに対応する。

戻り値

typeが表す型に対してstd::remove_pointer相当の変換を適用した結果の型のリフレクションを返す。

例外

typeが型を表さない場合、std::meta::exception例外を送出する。

#include <meta>

int main() {
  static_assert(std::meta::remove_pointer(^^int*) == ^^int);
}

出力

バージョン

言語

  • C++26

処理系

関連項目

参照