MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / count

Method count

lesson6-Segmentation/json.hpp:16506–16516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16504 }
16505
16506 size_type count(const Key& key) const
16507 {
16508 for (auto it = this->begin(); it != this->end(); ++it)
16509 {
16510 if (it->first == key)
16511 {
16512 return 1;
16513 }
16514 }
16515 return 0;
16516 }
16517
16518 iterator find(const Key& key)
16519 {

Callers 2

countFunction · 0.80
UNetImplMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected