IDA C++ SDK 9.2
Loading...
Searching...
No Matches
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

 pool_allocator_t ()
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.

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T pool_allocator_t< T >::value_type

◆ pointer

template<typename T>
typedef T* pool_allocator_t< T >::pointer

◆ const_pointer

template<typename T>
typedef const T* pool_allocator_t< T >::const_pointer

◆ reference

template<typename T>
typedef T& pool_allocator_t< T >::reference

◆ const_reference

template<typename T>
typedef const T& pool_allocator_t< T >::const_reference

◆ size_type

template<typename T>
typedef size_t pool_allocator_t< T >::size_type

◆ difference_type

template<typename T>
typedef ptrdiff_t pool_allocator_t< T >::difference_type

Constructor & Destructor Documentation

◆ pool_allocator_t() [1/4]

template<typename T>
pool_allocator_t< T >::pool_allocator_t ( )
inline

◆ pool_allocator_t() [2/4]

template<typename T>
template<typename U>
pool_allocator_t< T >::pool_allocator_t ( const pool_allocator_t< U > & )
inline

◆ pool_allocator_t() [3/4]

template<typename T>
pool_allocator_t< T >::pool_allocator_t ( const pool_allocator_t< T > & )
inline

◆ pool_allocator_t() [4/4]

template<typename T>
pool_allocator_t< T >::pool_allocator_t ( pool_allocator_t< T > && )
default

Member Function Documentation

◆ operator=() [1/2]

template<typename T>
pool_allocator_t & pool_allocator_t< T >::operator= ( const pool_allocator_t< T > & )
inline

◆ operator=() [2/2]

template<typename T>
pool_allocator_t & pool_allocator_t< T >::operator= ( pool_allocator_t< T > && )
default

◆ operator==()

template<typename T>
bool pool_allocator_t< T >::operator== ( const pool_allocator_t< T > & r) const
inline

◆ allocate()

template<typename T>
T * pool_allocator_t< T >::allocate ( size_t n)
inline

◆ deallocate()

template<typename T>
void pool_allocator_t< T >::deallocate ( T * ptr,
size_t n )
inline

The documentation for this class was generated from the following file:
  • ida-sdk/src/include/pro.h