Changeset View
Changeset View
Standalone View
Standalone View
src/cuckoocache.h
// Copyright (c) 2016 Jeremy Rubin | // Copyright (c) 2016 Jeremy Rubin | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef _BITCOIN_CUCKOOCACHE_H_ | #ifndef BITCOIN_CUCKOOCACHE_H | ||||
#define _BITCOIN_CUCKOOCACHE_H_ | #define BITCOIN_CUCKOOCACHE_H | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <array> | #include <array> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cmath> | #include <cmath> | ||||
#include <cstring> | #include <cstring> | ||||
#include <memory> | #include <memory> | ||||
#include <vector> | #include <vector> | ||||
▲ Show 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | inline bool contains(const Element &e, const bool erase) const { | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
}; | }; | ||||
} // namespace CuckooCache | } // namespace CuckooCache | ||||
#endif | #endif // BITCOIN_CUCKOOCACHE_H |