alternative Standard Libary  0.29.8
std::allocator Klassenreferenz

#include <allocator.hpp>

Öffentliche Methoden

 allocator (const char *name="alloc")
 
 ~allocator ()
 
virtual void * allocate (unsigned int bytes, int flags=0)
 
virtual void * allocate_aligned (unsigned int bytes, unsigned int alignment, int flags=0)
 
virtual void deallocate (void *ptr, unsigned int bytes)
 
const char * get_name () const
 

Ausführliche Beschreibung

Beschreibung der Konstruktoren und Destruktoren

◆ allocator()

std::allocator::allocator ( const char *  name = "alloc")
inlineexplicit
44 : m_name(name) {}

◆ ~allocator()

std::allocator::~allocator ( )
inline
45 {}

Dokumentation der Elementfunktionen

◆ allocate()

void * std::allocator::allocate ( unsigned int  bytes,
int  flags = 0 
)
inlinevirtual
72  {
73  return operator new(bytes);
74  }

◆ allocate_aligned()

virtual void* std::allocator::allocate_aligned ( unsigned int  bytes,
unsigned int  alignment,
int  flags = 0 
)
inlinevirtual
51  {
52  //return memalign(bytes, alignment);
53  return 0;
54  }

◆ deallocate()

void std::allocator::deallocate ( void *  ptr,
unsigned int  bytes 
)
inlinevirtual
77  {
78  operator delete(ptr);
79  }

◆ get_name()

const char* std::allocator::get_name ( ) const
inline
57 { return m_name; }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: