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

  1. リファレンス
  2. tuple

最終更新日時: 2026年08月18日 09時56分31秒 (JST)
Akira Takahashi が更新

履歴 編集

<tuple>

tuple(C++11)

<tuple>ヘッダでは、異なる型を格納できる固定サイズコレクションであるタプル型を提供する。2要素のみ格納可能なpairとは違い、tupleは任意の数の要素を格納できる。

このヘッダでは、以下の標準ヘッダをインクルードする:

  • <compare> (C++20)

フリースタンディング

このヘッダは、フリースタンディング処理系でも使用できる。本ヘッダが提供する全ての機能がフリースタンディング処理系で使用可能である。

タプルクラス

名前 説明 対応バージョン
tuple タプル型(class template) C++11

タプル生成関数

名前 説明 対応バージョン
ignore 無視する要素のプレースホルダー(constant variable) C++11
make_tuple 引数のコピーからタプルを生成する C++11
forward_as_tuple 引数の完全な型からタプルを生成する C++11
tie 引数への参照からタプルを生成する C++11
tuple_cat 複数のタプルから1つのタプルを生成する C++11

引数のタプルを使って関数を呼び出す

名前 説明 対応バージョン
apply タプルを展開して関数呼び出しする C++17
make_from_tuple タプル内の値を使って任意の型を構築する C++17

タプルヘルパクラス

名前 説明 対応バージョン
tuple_size tupleの要素数を取得する(class template) C++11
tuple_element tupleのi番目の要素型を取得する(class template) C++11

バージョン

言語

  • C++11

参照

  • P2051R0 C++ Standard Library Issues to be moved in Prague
  • P1642R11 Freestanding Library: Easy [utilities], [ranges], and [iterators]
    • C++23で、このヘッダの全機能がフリースタンディング処理系で使用可能になった
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.