barretenberg
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Friends | List of all members
barretenberg::ContainerSlabAllocator< T > Class Template Reference

#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 > &)
 

Detailed Description

template<typename T>
class barretenberg::ContainerSlabAllocator< T >

Allocator for containers such as std::vector. Makes them leverage the underlying slab allocator where possible.


The documentation for this class was generated from the following file: