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

  1. リファレンス
  2. forward_list

最終更新日時: 2020年11月19日 14時42分25秒 (JST)
Akira Takahashi が更新

履歴 編集

<forward_list>

forward_list(C++11)

<forward_list>ヘッダでは、単方向リンクリストの実装であるforward_listコンテナを提供する。

forward_listは、標準ライブラリではシーケンスコンテナの一種として定義されるが、いくつかの点でシーケンスコンテナの要件を満たさない

forward_listは、C言語で単方向リンクリストを実装する場合と比べ、空間的にもパフォーマンス的にもゼロオーバーヘッドであるよう設計されている。
また、forward_listはリンクリストの性質上、挿入・削除のような破壊的操作を行なってもイテレータは無効にならない。

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

  • <initializer_list>
  • <compare> (C++20)
名前 説明 対応バージョン
forward_list 単方向リンクリスト(class template) C++11

参照

  • N2930 Range-Based For Loop Wording (Without Concepts)
  • P2051R0 C++ Standard Library Issues to be moved in Prague
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.