Skip to content

Commit

Permalink
Switch to unordered_map
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdmdm authored Dec 18, 2024
1 parent 9616e4c commit b75fef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rspell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string.h>
#include <ctype.h>
#include <string>
#include <map>
#include <unordered_map>
#include <list>
#include "dict.h"
#include "rspell.h"
Expand Down Expand Up @@ -36,7 +36,7 @@ inline bool ceq(const char *a, const char *b)
typedef std::string SPELL_WORD;
typedef enum { W_NOT_IN_DICT, W_THE_WORD, W_SWAP, W_DELETE, W_INSERT } WHERE;

typedef std::map<SPELL_WORD, int> WORD_MAP;
typedef std::unordered_map<SPELL_WORD, int> WORD_MAP;

typedef std::list<SPELL_WORD> WORD_LIST;

Expand Down

0 comments on commit b75fef0

Please sign in to comment.