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

Function count

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

Source from the content-addressed store, hash-verified

2391namespace Vector {
2392namespace Detail {
2393template <typename InputIterator, typename T> size_t count(InputIterator first, InputIterator last, T const &item) {
2394 size_t cnt = 0;
2395 for (; first != last; ++first) {
2396 if (*first == item) {
2397 ++cnt;
2398 }
2399 }
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) {

Callers 1

matchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected