/
uzer_007
/
reindexer
Обзор
Документация
Войти
/
uzer_007
/
reindexer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cpp_src/core/function/precomputed_values.h
22 строки
466 B
madschemas
Update to version v5.12.0
20 мар 2026, 08:17
20 мар 2026, 08:17
2eef2e6
Код
Авторство
О чём код?
#pragma once #include "function.h" namespace reindexer::functions { class [[nodiscard]] PrecomputedValues { public: PrecomputedValues() = default; void Put(FunctionType functionType, Variant&& v); void Put(const functions::Now& f); std::optional<Variant> Get(const FunctionVariant& function) const; private: std::optional<Variant> get(FunctionType type) const; std::unordered_map<FunctionType, Variant> values_; }; } // namespace reindexer::functions