Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
pool_allocator_t< T > Class Template Reference

A custom allocator for containers. More...

#include <pro.h>

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

template<typename U >
 pool_allocator_t (const pool_allocator_t< U > &)
 
 pool_allocator_t (const pool_allocator_t &)
 
pool_allocator_toperator= (const pool_allocator_t &)
 
 pool_allocator_t (pool_allocator_t &&)=default
 
pool_allocator_toperator= (pool_allocator_t &&)=default
 
bool operator== (const pool_allocator_t &r) const
 
T * allocate (size_t n)
 
void deallocate (T *ptr, size_t n)
 

Detailed Description

template<typename T>
class pool_allocator_t< T >

A custom allocator for containers.

May be useful for std::map and std::set, when the objects are small in size.


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