MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / contains

Function contains

Bcore/src/main/cpp/Dobby/tests/catch.hpp:2402–2409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2400 return cnt;
2401}
2402template <typename InputIterator, typename T> bool contains(InputIterator first, InputIterator last, T const &item) {
2403 for (; first != last; ++first) {
2404 if (*first == item) {
2405 return true;
2406 }
2407 }
2408 return false;
2409}
2410} // namespace Detail
2411
2412template <typename T> struct ContainsElementMatcher : MatcherBase<std::vector<T>> {

Callers 3

matchMethod · 0.85
matchMethod · 0.85
matchesMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected