/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/common/CalculatorEngineCommon/Calculator.h
25 строк
601 B
leileizhang
[CmdPal][AOT] Using ExprTk to make the Cal extension AOT-compatible (#39972)
13 июн 2025, 07:27
Не верифицирован
13 июн 2025, 07:27
2d1676b
Код
Авторство
О чём код?
#pragma once #include "Calculator.g.h" namespace winrt::CalculatorEngineCommon::implementation { struct Calculator : CalculatorT<Calculator> { Calculator() = default; Calculator(winrt::Windows::Foundation::Collections::IPropertySet const& constants); winrt::hstring EvaluateExpression(winrt::hstring const& expression); private: std::unordered_map<std::string, double> m_constants; }; } namespace winrt::CalculatorEngineCommon::factory_implementation { struct Calculator : CalculatorT<Calculator, implementation::Calculator> { }; }