MCPcopy Create free account
hub / github.com/HelenOS/helenos / find_if

Function find_if

uspace/lib/cpp/include/__bits/algorithm.hpp:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template<class InputIterator, class Predicate>
117 InputIterator find_if(InputIterator first, InputIterator last, Predicate pred)
118 {
119 while (first != last)
120 {
121 if (pred(*first))
122 return first;
123 ++first;
124 }
125
126 return last;
127 }
128
129 template<class InputIterator, class Predicate>
130 InputIterator find_if_not(InputIterator first, InputIterator last, Predicate pred)

Callers 1

test_non_modifyingMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_non_modifyingMethod · 0.68