MCPcopy Create free account
hub / github.com/comaps/comaps / Equals

Method Equals

libs/indexer/feature_data.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool TypesHolder::Equals(TypesHolder const & other) const
67{
68 if (m_size != other.m_size)
69 return false;
70
71 // Dynamic vector + sort for kMaxTypesCount array is a huge overhead.
72
73 auto const b = begin();
74 auto const e = end();
75 for (auto t : other)
76 if (std::find(b, e, t) == e)
77 return false;
78 return true;
79}
80
81namespace
82{

Callers 3

UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 3

findFunction · 0.85
beginFunction · 0.50
endFunction · 0.50

Tested by 2

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36