Use std::unordered_set
This commit is contained in:
parent
a457d5ad4d
commit
54a34119f3
4 changed files with 5 additions and 27 deletions
|
|
@ -1,16 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "store-api.hh"
|
||||
#include "util.hh"
|
||||
#include "pathlocks.hh"
|
||||
|
||||
#if HAVE_TR1_UNORDERED_SET
|
||||
#include <tr1/unordered_set>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
class sqlite3;
|
||||
class sqlite3_stmt;
|
||||
|
|
@ -306,11 +302,7 @@ private:
|
|||
|
||||
void checkDerivationOutputs(const Path & drvPath, const Derivation & drv);
|
||||
|
||||
#if HAVE_TR1_UNORDERED_SET
|
||||
typedef std::tr1::unordered_set<ino_t> InodeHash;
|
||||
#else
|
||||
typedef std::set<ino_t> InodeHash;
|
||||
#endif
|
||||
typedef std::unordered_set<ino_t> InodeHash;
|
||||
|
||||
InodeHash loadInodeHash();
|
||||
Strings readDirectoryIgnoringInodes(const Path & path, const InodeHash & inodeHash);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue