The Wayback Machine - https://web.archive.org/web/20180222111915/http://ja.cppreference.com:80/w/cpp/iterator
名前空間
変種
操作

Iterator library

提供: cppreference.com
< cpp


イテレータライブラリは5イテレータの種類だけでなく、イテレータの形質、アダプタ、ユーティリティ関数の定義を提供します.
Original:
The iterator library provides definitions for five kinds of iterators as well as iterator traits, adapters, and utility functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集]反復子のカテゴリ

イテレータの5種類があります:InputIteratorOutputIteratorForwardIteratorBidirectionalIterator、とRandomAccessIterator.
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
代わりに、特定の種​​類によって定義されるのでは、イテレータの各カテゴリはそれで実行可能な操作によって定義されます。例えば、ポインタがRandomAccessIteratorで必要とされるすべての操作をサポートしているので、ポインタはRandomAccessIteratorが期待されているどこでも使用することができます.. - この定義は、必要な操作をサポートする任意の型が反復子として使用できることを意味します
Original:
Instead of being defined by specific types, each category of iterator is defined by the operations that can be performed on it. This definition means that any type that supports the necessary operations can be used as an iterator -- for example, a pointer supports all of the operations required by RandomAccessIterator, so a pointer can be used anywhere a RandomAccessIterator is expected.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5反復子カテゴリは階層構造に編成することができ、どこより強力なイテレータのカテゴリ(例えばRandomAccessIterator)以下の強力なカテゴリ(例えばInputIterator)の操作をサポートしています
Original:
The five iterator categories can be organized into a hierarchy, where more powerful iterator categories (e.g. RandomAccessIterator) support the operations of less powerful categories (e.g. InputIterator):
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator category Defined operations
RandomAccessIteratorBidirectionalIteratorForwardIteratorInputIterator
  • お読みください
    Original:
    read
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • インクリメント(複数のパスなし)
    Original:
    increment (without multiple passes)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
OutputIterator
  • 書き込む
    Original:
    write
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • インクリメント(複数のパスなし)
    Original:
    increment (without multiple passes)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • インクリメント(複数のパスを持つ)
    Original:
    increment (with multiple passes)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • デクリメント
    Original:
    decrement
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • ランダムアクセス
    Original:
    random access
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[編集]イテレータプリミティブ

イテレータのプロパティに統一されたインタフェースを提供します
(クラステンプレート)[edit]
イテレータのカテゴリを示すために使用される空クラス型
(クラス)[edit]
基本イテレータ
(クラステンプレート)[edit]

[編集]イテレータアダプタ

逆順探索のためのイテレータアダプタ
Original:
iterator adaptor for reverse-order traversal
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
その右辺値参照に間接参照イテレータアダプタ
Original:
iterator adaptor which dereferences to an rvalue reference
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
引数から推論された型のstd::move_iteratorを作成します
Original:
creates a std::move_iterator of type inferred from the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)[edit]
コンテナの末尾に挿入するためのイテレータアダプタ
Original:
iterator adaptor for insertion at the end of a container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
引数から推論された型のstd::back_insert_iteratorを作成します
Original:
creates a std::back_insert_iterator of type inferred from the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)[edit]
容器の前面に挿入するためのイテレータアダプタ
Original:
iterator adaptor for insertion at the front of a container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
引数から推論された型のstd::front_insert_iteratorを作成します
Original:
creates a std::front_insert_iterator of type inferred from the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)[edit]
コンテナに挿入するためのイテレータアダプタ
Original:
iterator adaptor for insertion into a container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
引数から推論された型のstd::insert_iteratorを作成します
Original:
creates a std::insert_iterator of type inferred from the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)[edit]

[編集]ストリーム反復子

std::basic_istreamから読み取る入力イテレータ
Original:
input iterator that reads from std::basic_istream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
std::basic_ostreamに書き込みを行う出力イテレータ
Original:
output iterator that writes to std::basic_ostream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
std::basic_streambufから読み取る入力イテレータ
Original:
input iterator that reads from std::basic_streambuf
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]
std::basic_streambufに書き込みを行う出力イテレータ
Original:
output iterator that writes to std::basic_streambuf
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラステンプレート)[edit]

[編集]イテレータ操作

Defined in header <iterator>
指定された距離によって進歩イテレータ
Original:
advances an iterator by given distance
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)[edit]
2つのイテレータの間の距離を返します
(関数)[edit]
(C++11)
イテレータをインクリメントします
Original:
increment an iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)[edit]
(C++11)
イテレータをデクリメントします
Original:
decrement an iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)[edit]

[編集]アクセスの範囲

Defined in header <iterator>
(C++11)
コンテナまたは配列の先頭を指すイテレータを返す
Original:
returns an iterator to the beginning of a container or array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)[edit]
(C++11)
コンテナまたは配列の末尾を指すイテレータを返す
Original:
returns an iterator to the end of a container or array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)[edit]
close