Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

simple_alloc Class Template Reference

#include <stl_alloc.h>

List of all members.

Static Public Methods

T * allocate (size_t n)
T * allocate (void)
void deallocate (T *p, size_t n)
void deallocate (T *p)

template<class T, class Alloc>
class simple_alloc< T, Alloc >


Member Function Documentation

template<class T, class Alloc>
T* simple_alloc< T, Alloc >::allocate void    [inline, static]
 

Definition at line 222 of file stl_alloc.h.

00223                 { return (T*) Alloc::allocate(sizeof (T)); }

template<class T, class Alloc>
T* simple_alloc< T, Alloc >::allocate size_t    n [inline, static]
 

Definition at line 220 of file stl_alloc.h.

00221                 { return 0 == n? 0 : (T*) Alloc::allocate(n * sizeof (T)); }

template<class T, class Alloc>
void simple_alloc< T, Alloc >::deallocate T *    p [inline, static]
 

Definition at line 226 of file stl_alloc.h.

00227                 { Alloc::deallocate(p, sizeof (T)); }

template<class T, class Alloc>
void simple_alloc< T, Alloc >::deallocate T *    p,
size_t    n
[inline, static]
 

Definition at line 224 of file stl_alloc.h.

00225                 { if (0 != n) Alloc::deallocate(p, n * sizeof (T)); }


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

Documentation generated on Thu May 2 15:03:44 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001