Skip to content

yyqgituser/SlabPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlabPool

A C++ template implementation of slab pool

class Int {
public:
  ObjInSlab *poolNext;
  Slab<ObjInSlab> *slab;

// other data
public:
  int v;
};

int main() {
  Int *obj;
  
  SlabPool<Int> pool(20, 1);
  obj = pool.alloc();
  pool.release(obj);
  
  return 0;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published