Registry / utility / bext-sml

bext-sml

JSON →
library1.1.13vcpkgunverified

Your scalable C++14 one header only State Machine Library with no dependencies.

vcpkg install bext-sml
INSTALL
IMPORT
SIG · BEXT-SML
B
bext-sml
utilitycppv1.1.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boost/sml.hpp
#include <boost/sml.hpp>

Define a simple state machine with transitions

#include <boost/sml.hpp> #include <iostream> namespace sml = boost::sml; struct idle {}; struct running {}; struct MyMachine { auto operator()() const { using namespace sml; return make_transition( state<idle> + event<running> / [] { std::cout << "start"; }, state<running> ); } }; int main() { sml::sm<MyMachine> sm; sm.process_event(running{}); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.13latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources

No resource links recorded.

bext-sml — pip install bext-sml · libregistry