Use ::count to check if sets and maps contain elements
This commit is contained in:
parent
66144dc28e
commit
77a94a2929
4 changed files with 4 additions and 8 deletions
|
|
@ -172,7 +172,7 @@ class CCodeGenerator {
|
|||
|
||||
add(", ");
|
||||
|
||||
if (syntax_grammar.ubiquitous_tokens.find(symbol) != syntax_grammar.ubiquitous_tokens.end())
|
||||
if (syntax_grammar.ubiquitous_tokens.count(symbol))
|
||||
add(".extra = true");
|
||||
else
|
||||
add(".extra = false");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue