Finite state machine: Difference between revisions
Content added Content deleted
m (→{{header|C++}}: Minor rewording of prompt) |
m (→{{header|C++}}: Renamed template parameter to indicate required semantics (ie: a push_back() member function)) |
||
Line 99: | Line 99: | ||
A set of utility functions that may be helpful for displaying valid transitions to the user, etc... |
A set of utility functions that may be helpful for displaying valid transitions to the user, etc... |
||
*/ |
*/ |
||
template <typename |
template <typename PushBackContainer> |
||
bool |
bool |
||
get_valid_transitions(State const& state, |
get_valid_transitions(State const& state, PushBackContainer& container) |
||
{ |
{ |
||
container.clear(); |
container.clear(); |