|
barretenberg
|
#include <slab_allocator.hpp>
Classes | |
| struct | rebind |
Public Types | |
| using | value_type = T |
| using | pointer = T * |
| using | const_pointer = const T * |
| using | size_type = std::size_t |
Public Member Functions | |
| pointer | allocate (size_type n) |
| void | deallocate (pointer p, size_type) |
Friends | |
| bool | operator== (const ContainerSlabAllocator< T > &, const ContainerSlabAllocator< T > &) |
| bool | operator!= (const ContainerSlabAllocator< T > &, const ContainerSlabAllocator< T > &) |
Allocator for containers such as std::vector. Makes them leverage the underlying slab allocator where possible.