Skip to content

Commit

Permalink
comment; making OrdVector::contains const
Browse files Browse the repository at this point in the history
  • Loading branch information
vhavlena committed Jul 12, 2024
1 parent 9df2586 commit c76274b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/mata/nfa/nfa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public:

/**
* @brief Is the automaton flat?
*
* Flat automaton is an NFA whose every SCC is a simple loop. Basically each state in an
* SCC has at most one successor within this SCC.
*
Expand Down
2 changes: 1 addition & 1 deletion include/mata/utils/ord-vector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public:
/**
* Check whether @p key exists in the ordered vector.
*/
bool contains(const Key& key) { return find(key) != end(); }
bool contains(const Key& key) const { return find(key) != end(); }

/**
* @brief Remove @p k from sorted vector.
Expand Down

0 comments on commit c76274b

Please sign in to comment.