Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-01-07 17:02:45 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:03:27 +0300
commit7342d2a825aa4f7bc05fa6a554551924558b438e (patch)
treed6fb20fe49f2c9d8a4b13af3f6f659f120a645b6 /indexer/ftypes_matcher.hpp
parentde3caa14e222b24eff52e7406e9550181c58d4e1 (diff)
Review fixes.
Diffstat (limited to 'indexer/ftypes_matcher.hpp')
-rw-r--r--indexer/ftypes_matcher.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index cb5f3c30d5..f6a745017c 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -2,7 +2,9 @@
#include "base/base.hpp"
+#include "std/algorithm.hpp"
#include "std/string.hpp"
+#include "std/utility.hpp"
#include "std/vector.hpp"
namespace feature { class TypesHolder; }
@@ -73,10 +75,14 @@ public:
class IsStreetChecker : public BaseChecker
{
public:
- static vector<vector<string>> const kPaths;
-
IsStreetChecker();
+ template <typename TFn>
+ void ForEachType(TFn && fn) const
+ {
+ for_each(m_types.cbegin(), m_types.cend(), forward<TFn>(fn));
+ }
+
static IsStreetChecker const & Instance();
};