redux-cpp:C ++应用程序的可预测状态容器

时间:2021-05-22 19:54:34
【文件属性】:
文件名称:redux-cpp:C ++应用程序的可预测状态容器
文件大小:76KB
文件格式:ZIP
更新时间:2021-05-22 19:54:34
C++ Redux-cpp 库的C ++实现 安装 所有Redux-cpp源代码都包含在一个标头中。 安装Redux-cpp的最简单方法是将其放入项目中。 可以使用轻松编译示例和单元测试。 除标准库外,该存储库没有任何依赖项。 要旨 Redux-cpp中的实现: # include " redux.hpp " # include < iostream> enum Action { INCREMENT, DECREMENT }; int reducer ( int state, Action action) { switch (action) { case INCREMENT: return state + 1 ; case DECREMENT: return state - 1 ; default : return state; } } void log
【文件预览】:
redux-cpp-master
----.travis.yml(13B)
----tests()
--------tests.cpp(3KB)
--------main.cpp(1KB)
--------catch.hpp(369KB)
----LICENCE.md(1KB)
----include()
--------redux.hpp(2KB)
----examples()
--------counter.cpp(2KB)
--------counter_range.cpp(2KB)
----configure(7B)
----CMakeLists.txt(2KB)
----README.md(1KB)

网友评论