MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / count

Method count

Source/Utils/cxxopts.hpp:1549–1566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547 }
1548
1549 size_t
1550 count(const std::string& o) const
1551 {
1552 auto iter = m_keys.find(o);
1553 if (iter == m_keys.end())
1554 {
1555 return 0;
1556 }
1557
1558 auto viter = m_values.find(iter->second);
1559
1560 if (viter == m_values.end())
1561 {
1562 return 0;
1563 }
1564
1565 return viter->second.count();
1566 }
1567
1568 const OptionValue&
1569 operator[](const std::string& option) const

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected