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::basic_format_context::arg - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. format
  3. basic_format_context
  4. arg

最終更新日時: 2026年09月11日 13時06分31秒 (JST)
Akira Takahashi が更新

履歴 編集

function
<format>

std::basic_format_context::arg(C++20)

basic_format_arg<basic_format_context>
  arg(size_t id) const;                         // (1) C++20
basic_format_arg<basic_format_context>
  arg(size_t id) const noexcept;                // (1) C++23
constexpr basic_format_arg<basic_format_context>
  arg(size_t id) const noexcept;                // (1) C++26

概要

i番目のフォーマット引数を取得する。iが範囲外の場合、basic_format_arg<basic_format_context>のデフォルト値を返す。

バージョン

言語

  • C++20

処理系

  • Clang: ??
  • GCC: 13 ✅
  • Visual C++: ??

参照

  • P0645R10 Text Formatting
  • P3391R2 constexpr std::format
    • C++26からconstexprに対応した
  • LWG Issue 3654. basic_format_context::arg(size_t) should be noexcept
    • C++23で、noexceptが付加された
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.