関数名 |
書 式 |
解 説 |
adjacent_find |
FwdIt adjacent_find(FwdIt first, FwdIt last) |
firstからlastのシーケンスから連続した同位置の要素を見つけ、その最初の要素を指すイタレーターを返します。 |
adjacent_find |
FwdIt adjacent_find(FwdIt first, FwdIt last, BinPred pr) |
firstからlastのシーケンスから連続した同位置の要素を見つけ、その最初の要素を指すイタレーターを返します。 同一かどうかを調べるのにpr関数を使用します。 |
equal |
bool equal(InIt1 first1, InIt1 last1, InIt2 first2) |
first1からlast1の要素が、first2から始まる要素と同じ場合はtrueが帰ります。 |
equal |
bool equal(InIt1 first1, InIt1 last1, InIt2 fist2, BinPred pr) |
first1からlast1の要素が、first2から始まる要素と同じ場合はtrueが帰ります。 等値かどうかの判断にprを用います。 |
find |
InIt find(InIt first, InIt last, const T& val) |
firstからlastのシーケンスからvalと等しい要素を検索し、最初に見つけた要素を指すイタレーターを返します。 |
find_end |
FwdIt1 find_end(FwdIt1 first1, FwdIt1 last1, FwdIt1 first2, FwdIt1 last2) |
first1からlast1のシーケンスからfirst2からlast2の部分シーケンスを検索します。見つかれば見つかった部分シーケンスの末尾を指すイタレーターを返します。見つからない場合はlast1を返します。 |
find_end |
FwdIt1 find_end(FwdIt1 first1, FwdIt1 last1, FwdIt1 first2, FwdIt1 last2, BinPred pr) |
first1からlast1のシーケンスからfirst2からlast2の部分シーケンスを検索します。見つかれば見つかった部分シーケンスの末尾を指すイタレーターを返します。見つからない場合はlast1を返します。等しいかどうかの判断にprを用います。 |
find_if |
InIt find_if( InIt first, InIt last, UniPred pr) |
firstからlastからprがtrueを返すような要素を検索し、最初に見つかった要素を指すイタレーターを返します。 |
find_first_of |
FwdIt1 replace_if(FwdIt first1, FwdIt last1, FwdIt2 first2, FwdIt2 last2) |
first1からlast1の要素にfirst2からlast2の要素のいずれかが含まれれば、その要素を指すイタレーターを返します。含まれていなければ、last1を返します。 |
find_first_of |
FwdIt1 replace_if(FwdIt first1, FwdIt last1, FwdIt2 first2, FwdIt2 last2, BinPred pr) |
first1からlast1の要素にfirst2からlast2の要素のいずれかが含まれれば、その要素を指すイタレーターを返します。含まれていなければ、last1を返します。等値かどうかの判断にprを使用します。 |
mismatch |
pair<InIt1, InIt2> mismatch(InIt1 first, InIt1 last, InIt2 first2) |
firstからlastからのシーケンスと、first2からのシーケンスを比較し、初めて異なる部分のイタレーターのペアを返します。等しければ、各シーケンスの末尾を指すイタレーターのペアを返します。 |
mismatch |
pair<InIt1, InIt2> mismatch(InIt1 first, InIt1 last, InIt2 first2, BinPred pr) |
firstからlastからのシーケンスと、first2からのシーケンスを比較し、初めて異なる部分のイタレーターのペアを返します。等しければ、各シーケンスの末尾を指すイタレーターのペアを返します。等値かどうかの判断にprを使用します。 |
search |
FwdIt search( FwdIt first1, FwdIt last1, FwdIt first2, FwdIt last2 ) |
first2からlast2の部分シーケンスをfist1からlast1から検索します。 戻り値は検索の結果、見つかったシーケンスの先頭のイタレーターです。 見つからなかった場合はlast2が返されます。 |
search |
FwdIt search( FwdIt first1, FwdIt last1, FwdIt first2, FwdIt last2, Pred pr ) |
等しいかどうかの二項述語を指定する以外は上記と同じです。 |
search_n |
FwdIt search_n( FwdIt first, FwdIt last, Size n, const T& val ) |
firstからlastのシーケンスからvalがn個連続する部分シーケンスを検索します。 戻り値は検索の結果、見つかったシーケンスの先頭のイタレーターです。 見つからなかった場合はlastが返されます。 |
search_n |
FwdIt search_n( FwdIt first, FwdIt last, Size n, const T& val, Pred pr ) |
等しいかどうかの二項述語を指定する以外は上記と同じです。 |