Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
24
libs/search/localities_source.hpp
Normal file
24
libs/search/localities_source.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace search
|
||||
{
|
||||
struct LocalitiesSource
|
||||
{
|
||||
LocalitiesSource();
|
||||
|
||||
template <typename Fn>
|
||||
void ForEachType(Fn && fn) const
|
||||
{
|
||||
for (auto const c : m_cities)
|
||||
fn(c);
|
||||
for (auto const t : m_towns)
|
||||
fn(t);
|
||||
}
|
||||
|
||||
std::vector<uint32_t> m_cities;
|
||||
std::vector<uint32_t> m_towns;
|
||||
};
|
||||
} // namespace search
|
||||
Loading…
Add table
Add a link
Reference in a new issue