- /* Outgoing transition: what was the last transition that we took to leave this state? */
- std::unique_ptr<Transition> transition_;
-
- /** Sequential state number (used for debugging) */
+ /**
+ * @brief An empty transition that leads to this state by default
+ */
+ const std::unique_ptr<Transition> default_transition_ = std::make_unique<Transition>();
+
+ /**
+ * @brief The outgoing transition: what was the last transition that
+ * we took to leave this state?
+ *
+ * The owner of the transition is the `ActorState` instance which exists in this state,
+ * or a reference to the internal default transition `Transition()` if no transition has been
+ * set
+ */
+ Transition* transition_ = default_transition_.get();
+
+ /** Sequential state ID (used for debugging) */