GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::meta::add_pointer - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. meta
  3. add_pointer

最終更新日時: 2026年05月07日 12時33分06秒 (JST)
Akira Takahashi が更新

履歴 編集

function
<meta>

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

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

概要

型にポインタを付加する。std::add_pointerに対応する。

戻り値

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

例外

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

例

#include <meta>

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

出力

バージョン

言語

  • C++26

処理系

  • Clang: ??
  • GCC: 16 (-freflection オプション指定) ✅
  • Visual C++: ??

関連項目

  • std::add_pointer

参照

  • P2996R13 Reflection for C++26
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.