21st Non-variable easy algorithm

Source: Internet
Author: User
Tags ranges

21st Non-variable easy algorithm
non-modifying Sequence Operations
21.0 advance, distance
to understand the template, first look at these two iterator action functions
21.1 Container -by-element for_each
For_each Apply function to range (template function)
21.2 Find container elements find
find find value in range (function template)
21.3 Items Find container elements find_if
find_if find element in range (function template)
21.4 Neighbor Lookup container element adjacent_find
adjacent_find Find equal adjacent elements in range (function template)
21.5 Range Lookup container element find_first_of
find_first_of find element from set in range (function template)
21.6 counts the number of container elements equal to a value count
count count appearances of value in range (function template)
21.7 Statistics container element number count_if
count_if Return Number of elements in range satisfying condition (function template)
21.8 element mismatch lookup mismatch
mismatch Return first position where ranges differ (function template)
21.9 elements equal judgment equal
equal Test whether the elements in the ranges is equal (function template)
21.10 Sub-sequence search
Search Find subsequence in range (function template)
21.11 Repeating element sub-sequence search Search_n
search_n Find Succession of equal values in range (function template)
21.12 last sub-sequence search Find_end
Find_end Find last subsequence in range (function template)

All the content here, has been folded:

21st Non-variable easy algorithm
Non-modifying sequence Operations


21.0 advance, distance
To understand the template, first look at these two iterator action functions


21.1 container-by-element for_each
For_each Apply function to range (template function)


21.2 Find container elements find
Find find value in range (function template)


21.3 items Find container elements find_if
Find_if Find element in range (function template)


21.4 Neighbor Lookup Container element adjacent_find
Adjacent_find find equal adjacent elements in range (function template)


21.5 Range Lookup Container element find_first_of
Find_first_of Find element from set in range (function template)


21.6 counts the number of container elements equal to a value count
Count count appearances of value in range (function template)


21.7 statistics container element number count_if
count_if Return number of elements in range satisfying condition (function template)


21.8 element mismatch lookup mismatch
Mismatch Return first position where ranges differ (function template)


21.9 Elements equal judgment equal
Equal Test whether the elements in the ranges is equal (function template)


21.10 Sub-sequence search
Search Find subsequence in range (function template)


21.11 repeating element sub-sequence search Search_n
Search_n Find succession of equal values in range (function template)


21.12 last sub-sequence search Find_end
Find_end Find last subsequence in range (function template)

000top000

21st Non-variable easy algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.