We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3761287 commit 6f70821Copy full SHA for 6f70821
src/xrCore/FixedMap.h
@@ -17,6 +17,8 @@ class FixedMAP
17
T val;
18
TNode *left, *right;
19
20
+ TNode() : key(), val(), left(nullptr), right(nullptr) {}
21
+
22
static void *operator new (size_t size) { return allocator::alloc(size); }
23
static void *operator new[](size_t size) { return allocator::alloc(size); }
24
static void operator delete (void *block) { allocator::dealloc(block); }
@@ -245,7 +247,7 @@ class FixedMAP
245
247
return N;
246
248
}
249
IC u32 allocated() { return this->limit; }
- IC void clear() { pool = 0; }
250
+ IC void clear() { destroy(); }
251
IC TNode* begin() { return nodes; }
252
IC TNode* end() { return nodes + pool; }
253
IC TNode* last() { return nodes + limit; } // for setup only
0 commit comments