MCPcopy Create free account
hub / github.com/ETLCPP/etl / predicate

Class predicate

test/test_algorithm.cpp:2202–2208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2200 TEST(find_if)
2201 {
2202 struct predicate
2203 {
2204 bool operator()(int i) const
2205 {
2206 return (i == 5);
2207 }
2208 };
2209
2210 int* itr1 = std::find_if(std::begin(dataA), std::end(dataA), predicate());
2211 int* itr2 = etl::find_if(std::begin(dataA), std::end(dataA), predicate());

Callers 15

TESTFunction · 0.85
RunTestsIfFunction · 0.85
remove_ifMethod · 0.85
find_ifFunction · 0.85
equalFunction · 0.85
replace_ifFunction · 0.85
find_endFunction · 0.85
find_if_notFunction · 0.85
adjacent_findFunction · 0.85
is_partitionedFunction · 0.85
partition_pointFunction · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
RunTestsIfFunction · 0.68