/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
map/viewport_search_params.hpp
30 строк
648 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 "search/hotels_filter.hpp" #include <functional> #include <memory> #include <optional> #include <string> namespace search { class Results; struct ViewportSearchParams { using OnStarted = std::function<void()>; using OnCompleted = std::function<void(Results const & results)>; 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; OnStarted m_onStarted; OnCompleted m_onCompleted; }; } // namespace search