diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-01-21 14:43:09 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:14:22 +0300 |
commit | bd2c286e890a687393062d0f6b79789ff94ab20f (patch) | |
tree | 9624966072379db5f1d3b8fbbc86867bb1cf3556 /indexer/feature_data.hpp | |
parent | 9338907ae8f945fcdea04ce9d4dd958c2e7f7345 (diff) |
Take streets into account.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r-- | indexer/feature_data.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index 5db6a58c7a..09be7b6556 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -110,8 +110,9 @@ namespace feature /// Sort types by it's specification (more detailed type goes first). void SortBySpec(); - friend bool operator==(TypesHolder const & a, TypesHolder const & b); - friend bool operator!=(TypesHolder const & a, TypesHolder const & b); + /// Returns true if this->m_types and other.m_types contain same values + /// in any order. Works in O(n log n). + bool Equals(TypesHolder const & other) const; }; inline string DebugPrint(TypesHolder const & t) |