I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
ComputingStlAlgorithms

Nonmodifying

Overview

Nonmodifying Algorithms neither change the order nor the value of the elements they process. They operate with input and forward iterators; therefore, you can call them for all standard containers.

Section Pages

for each

Performs an operation for each element

find

Searches for the first element with the passed value

find if

Searches for the first element that matches a criterion

adjacent find

Searches for two adjacent elements that are equal (by some criterion)

find first of

Searches the first of several possible elements

count

Count appearances of value in range

mismatch

Return first position where two ranges differ

equal

Test whether two ranges are equal

search

Searches for the first occurrence of a subrange

search n

Searches for the first n consecutive elements with certain properties

count if

Returns the number of elements that match a criterion

find end

Searches for the last occurrence of a subrang