From 675ecf36bf43f8743705af7d12dbc3d315462a06 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Sat, 3 Oct 2015 10:57:31 +0900 Subject: [C++] Speed up set by using integer value of Symbol --- symtab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'symtab.h') diff --git a/symtab.h b/symtab.h index 6ebe027..9d8a120 100644 --- a/symtab.h +++ b/symtab.h @@ -67,7 +67,7 @@ inline bool operator==(const Symbol& x, const Symbol& y) { } inline bool operator<(const Symbol& x, const Symbol& y) { - return x.str() < y.str(); + return x.val() < y.val(); } namespace std { -- cgit v1.2.3