Barretenberg
The ZK-SNARK library at the core of Aztec
|
#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.
Definition at line 48 of file slab_allocator.hpp.
using bb::ContainerSlabAllocator< T >::const_pointer = const T* |
Definition at line 52 of file slab_allocator.hpp.
using bb::ContainerSlabAllocator< T >::pointer = T* |
Definition at line 51 of file slab_allocator.hpp.
using bb::ContainerSlabAllocator< T >::size_type = std::size_t |
Definition at line 53 of file slab_allocator.hpp.
using bb::ContainerSlabAllocator< T >::value_type = T |
Definition at line 50 of file slab_allocator.hpp.
|
inline |
Definition at line 59 of file slab_allocator.hpp.
|
inline |
Definition at line 66 of file slab_allocator.hpp.
|
friend |
Definition at line 73 of file slab_allocator.hpp.
|
friend |
Definition at line 68 of file slab_allocator.hpp.