/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
map/everywhere_search_params.hpp
31 строка
716 B
Maxim Pimenov
[omim] Replaced boost::optional with std::optional.
26 дек 2019, 16:57
26 дек 2019, 16:57
01fdd7f
Код
Авторство
О чём код?
#pragma once #include "map/booking_filter_params.hpp" #include "map/search_product_info.hpp" #include "search/hotels_filter.hpp" #include "search/result.hpp" #include <chrono> #include <functional> #include <memory> #include <optional> #include <string> #include <vector> namespace search { struct EverywhereSearchParams { using OnResults = std::function<void(Results const & results, std::vector<ProductInfo> const & productInfo)>; std::string m_query; std::string m_inputLocale; std::shared_ptr<hotels_filter::Rule> m_hotelsFilter; booking::filter::Tasks m_bookingFilterTasks; std::optional<std::chrono::steady_clock::duration> m_timeout; OnResults m_onResults; }; } // namespace search