Tries to move from the current node by |c|. If the move can't be made, returns nullptr.
| 55 | // Tries to move from the current node by |c|. If the move can't |
| 56 | // be made, returns nullptr. |
| 57 | Node const * Move(TChar c) const |
| 58 | { |
| 59 | for (auto const & p : m_moves) |
| 60 | if (p.first == c) |
| 61 | return p.second.get(); |
| 62 | return nullptr; |
| 63 | } |
| 64 | |
| 65 | // Tries to move from the current node by [|begin|, |end|). If the |
| 66 | // move can't be made, returns nullptr. |
no test coverage detected