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

Method GetSearchMarkType

libs/map/search_mark.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 SearchMarkType GetSearchMarkType(uint32_t type) const
176 {
177 auto const it = std::partition_point(m_searchMarkTypes.cbegin(), m_searchMarkTypes.cend(),
178 [type](auto && t) { return t.first < type; });
179 if (it == m_searchMarkTypes.cend() || it->first != type)
180 return SearchMarkType::Default;
181
182 return it->second;
183 }
184
185private:
186 using Type = std::pair<uint32_t, SearchMarkType>;

Callers 1

GetSearchMarkTypeFunction · 0.80

Calls 2

cbeginMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected