mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(hash): add memory recycling hash table
This commit is contained in:
parent
06dbb7d1c8
commit
8a232d34f2
5 changed files with 158 additions and 5 deletions
15
storm/hash/TSHashObjectChunk.hpp
Normal file
15
storm/hash/TSHashObjectChunk.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef STORM_HASH_TS_OBJECT_CHUNK_HPP
|
||||
#define STORM_HASH_TS_OBJECT_CHUNK_HPP
|
||||
|
||||
#include "storm/Array.hpp"
|
||||
#include "storm/List.hpp"
|
||||
|
||||
template <class T, class TKey>
|
||||
class TSHashObjectChunk {
|
||||
public:
|
||||
// Member variables
|
||||
TSGrowableArray<T> m_array;
|
||||
TSLink<TSHashObjectChunk<T, TKey>> m_link;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue