Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Functions
pool.h File Reference
#include <array>
#include <cassert>
#include <cstddef>
#include <list>
#include <memory>
#include <new>
#include <type_traits>
#include <utility>
Include dependency graph for pool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PoolResource< MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES >
 A memory resource similar to std::pmr::unsynchronized_pool_resource, but optimized for node-based containers. More...
 
struct  PoolResource< MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES >::ListNode
 In-place linked list of the allocations, used for the freelist. More...
 
class  PoolAllocator< T, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES >
 Forwards all allocations/deallocations to the PoolResource. More...
 
struct  PoolAllocator< T, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES >::rebind< U >
 The rebind struct here is mandatory because we use non type template arguments for PoolAllocator. More...
 

Functions

template<class T1 , class T2 , std::size_t MAX_BLOCK_SIZE_BYTES, std::size_t ALIGN_BYTES>
bool operator== (const PoolAllocator< T1, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &a, const PoolAllocator< T2, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &b) noexcept
 
template<class T1 , class T2 , std::size_t MAX_BLOCK_SIZE_BYTES, std::size_t ALIGN_BYTES>
bool operator!= (const PoolAllocator< T1, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &a, const PoolAllocator< T2, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &b) noexcept
 

Function Documentation

◆ operator!=()

template<class T1 , class T2 , std::size_t MAX_BLOCK_SIZE_BYTES, std::size_t ALIGN_BYTES>
bool operator!= ( const PoolAllocator< T1, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &  a,
const PoolAllocator< T2, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &  b 
)
noexcept

Definition at line 343 of file pool.h.

◆ operator==()

template<class T1 , class T2 , std::size_t MAX_BLOCK_SIZE_BYTES, std::size_t ALIGN_BYTES>
bool operator== ( const PoolAllocator< T1, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &  a,
const PoolAllocator< T2, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES > &  b 
)
noexcept

Definition at line 336 of file pool.h.