MCPcopy Create free account
hub / github.com/creatale/node-dv / find

Method find

deps/opencv/modules/core/src/algorithm.cpp:68–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 bool find(const _KeyTp& key, _ValueTp& value) const
69 {
70 size_t a = 0, b = vec.size();
71 while( b > a )
72 {
73 size_t c = (a + b)/2;
74 if( vec[c].first < key )
75 a = c+1;
76 else
77 b = c;
78 }
79
80 if( a < vec.size() && vec[a].first == key )
81 {
82 value = vec[a].second;
83 return true;
84 }
85 return false;
86 }
87
88 void get_keys(vector<_KeyTp>& keys) const
89 {

Callers 4

split_stringFunction · 0.45
CommandLineParserMethod · 0.45
_createMethod · 0.45
AlgorithmInfoMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected