mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 09:07:41 +00:00
CSimplePool matches
This commit is contained in:
@@ -13,6 +13,8 @@ namespace rstl {
|
||||
template < typename K, typename P, int unk, typename Select, typename Hash, typename Equal,
|
||||
typename Alloc = rmemory_allocator >
|
||||
class hash_table {
|
||||
public:
|
||||
int size() const { return x.size(); }
|
||||
private:
|
||||
rstl::vector< rstl::list< P, Alloc > /*::iterator*/, Alloc > x;
|
||||
};
|
||||
@@ -21,6 +23,8 @@ template < typename K, typename V, typename Hash, typename Equal,
|
||||
typename Alloc = rmemory_allocator >
|
||||
class hash_map {
|
||||
typedef rstl::pair< K, V > Pair;
|
||||
public:
|
||||
int size() const { return table.size(); }
|
||||
|
||||
private:
|
||||
hash_table< K, Pair, 0, select1st< Pair >, Hash, Equal, Alloc > table;
|
||||
|
||||
Reference in New Issue
Block a user