File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 16
16
#include < unordered_set>
17
17
18
18
#include < boost/foreach.hpp>
19
- #include < boost/unordered_set.hpp>
20
- #include < boost/unordered_map.hpp>
21
19
22
20
namespace memusage
23
21
{
@@ -148,27 +146,13 @@ static inline size_t DynamicUsage(const std::shared_ptr<X>& p)
148
146
return p ? MallocUsage (sizeof (X)) + MallocUsage (sizeof (stl_shared_counter)) : 0 ;
149
147
}
150
148
151
- // Boost data structures
152
-
153
149
template <typename X>
154
150
struct unordered_node : private X
155
151
{
156
152
private:
157
153
void * ptr;
158
154
};
159
155
160
- template <typename X, typename Y>
161
- static inline size_t DynamicUsage (const boost::unordered_set<X, Y>& s)
162
- {
163
- return MallocUsage (sizeof (unordered_node<X>)) * s.size () + MallocUsage (sizeof (void *) * s.bucket_count ());
164
- }
165
-
166
- template <typename X, typename Y, typename Z>
167
- static inline size_t DynamicUsage (const boost::unordered_map<X, Y, Z>& m)
168
- {
169
- return MallocUsage (sizeof (unordered_node<std::pair<const X, Y> >)) * m.size () + MallocUsage (sizeof (void *) * m.bucket_count ());
170
- }
171
-
172
156
template <typename X, typename Y>
173
157
static inline size_t DynamicUsage (const std::unordered_set<X, Y>& s)
174
158
{
Original file line number Diff line number Diff line change 30
30
31
31
#include < atomic>
32
32
33
- #include < boost/unordered_map.hpp>
34
-
35
33
class CBlockIndex ;
36
34
class CBlockTreeDB ;
37
35
class CBloomFilter ;
@@ -161,7 +159,7 @@ extern CScript COINBASE_FLAGS;
161
159
extern CCriticalSection cs_main;
162
160
extern CBlockPolicyEstimator feeEstimator;
163
161
extern CTxMemPool mempool;
164
- typedef boost ::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
162
+ typedef std ::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
165
163
extern BlockMap mapBlockIndex;
166
164
extern uint64_t nLastBlockTx;
167
165
extern uint64_t nLastBlockSize;
You can’t perform that action at this time.
0 commit comments