Use ::count to check if sets and maps contain elements

This commit is contained in:
Max Brunsfeld 2015-12-17 10:05:42 -08:00
parent 66144dc28e
commit 77a94a2929
4 changed files with 4 additions and 8 deletions

View file

@ -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");