add a pool allocator for STL containers
* spot/priv/allocator.hh, spot/priv/Makefile.am: add a STL-compliant allocator based on spot::fixed_size_pool * spot/misc/fixpool.hh, spot/misc/fixpool.cc, spot/misc/Makefile.am: refactor the existing spot::fixed_size_pool * spot/ltsmin/ltsmin.cc, spot/twa/twaproduct.cc: reflect changes in the interface of spot::fixed_size_pool * tests/core/mempool.cc: test the new allocator
This commit is contained in:
parent
3fe74f1cb9
commit
c9131aee72
8 changed files with 258 additions and 21 deletions
|
|
@ -109,7 +109,7 @@ namespace spot
|
|||
{
|
||||
if (--count)
|
||||
return;
|
||||
pool->deallocate(this);
|
||||
pool->deallocate(const_cast<spins_state*>(this));
|
||||
}
|
||||
|
||||
size_t hash() const override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue