1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Use std::unordered_set

This commit is contained in:
Eelco Dolstra 2014-05-26 17:53:17 +02:00
parent a457d5ad4d
commit 54a34119f3
4 changed files with 5 additions and 27 deletions

View file

@ -3,10 +3,7 @@
#include "config.h"
#include <map>
#if HAVE_TR1_UNORDERED_SET
#include <tr1/unordered_set>
#endif
#include <unordered_set>
#include "types.hh"
@ -70,11 +67,7 @@ inline std::ostream & operator << (std::ostream & str, const Symbol & sym)
class SymbolTable
{
private:
#if HAVE_TR1_UNORDERED_SET
typedef std::tr1::unordered_set<string> Symbols;
#else
typedef std::set<string> Symbols;
#endif
typedef std::unordered_set<string> Symbols;
Symbols symbols;
public: