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

Function find

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

Source from the content-addressed store, hash-verified

102
103 template<class InputIterator, class T>
104 InputIterator find(InputIterator first, InputIterator last, const T& value)
105 {
106 while (first != last)
107 {
108 if (*first == value)
109 return first;
110 ++first;
111 }
112
113 return last;
114 }
115
116 template<class InputIterator, class Predicate>
117 InputIterator find_if(InputIterator first, InputIterator last, Predicate pred)

Callers 5

test_non_modifyingMethod · 0.85
findMethod · 0.85
find_first_ofMethod · 0.85
mapClass · 0.85
unordered_mapClass · 0.85

Calls

no outgoing calls

Tested by 1

test_non_modifyingMethod · 0.68