| 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 | |
| 185 | private: |
| 186 | using Type = std::pair<uint32_t, SearchMarkType>; |
no test coverage detected