MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / find

Method find

src/common/classes/array.h:433–444  ·  view source on GitHub ↗

This method only assigns "pos" if the element is found. Maybe we should modify it to iterate directy with "pos".

Source from the content-addressed store, hash-verified

431 // This method only assigns "pos" if the element is found.
432 // Maybe we should modify it to iterate directy with "pos".
433 bool find(const T& item, size_type& pos) const
434 {
435 for (size_type i = 0; i < count; i++)
436 {
437 if (data[i] == item)
438 {
439 pos = i;
440 return true;
441 }
442 }
443 return false;
444 }
445
446 bool findAndRemove(const T& item)
447 {

Callers 15

releaseWorkerMethod · 0.45
releaseThreadMethod · 0.45
checkServerUsersVersionFunction · 0.45
getVersionsFunction · 0.45
parseMethod · 0.45
ISC_analyze_nfsFunction · 0.45
ISC_analyze_pclanFunction · 0.45
ISC_analyze_tcpFunction · 0.45
ISC_expand_filenameFunction · 0.45
ISC_expand_shareFunction · 0.45
expand_filename2Function · 0.45
share_name_from_resourceFunction · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36