__gnu_cxx::throw_allocator

Langue: en

Version: 152182 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

__gnu_cxx::throw_allocator - Allocator class with logging and exception control.

SYNOPSIS


Inherits __gnu_cxx::throw_allocator_base.

Public Types


typedef const value_type * const_pointer

typedef const value_type & const_reference

typedef ptrdiff_t difference_type

typedef value_type * pointer

typedef value_type & reference

typedef size_t size_type

typedef T value_type

Public Member Functions


pointer allocate (size_type __n, std::allocator< void >::const_pointer hint=0)

void check_allocated (size_type label)

void check_allocated (pointer __p, size_type __n)

template<typename... _Args> void construct (pointer __p, _Args &&...__args)

void construct (pointer __p, const T &val)

void deallocate (pointer __p, size_type __n)

void destroy (pointer __p)

void init (unsigned long seed)

size_type max_size () const throw ()

template<typename U > throw_allocator (const throw_allocator< U > &) throw ()

throw_allocator (const throw_allocator &) throw ()

Static Public Member Functions


static bool empty ()

static double get_throw_prob ()

static void set_label (size_t l)

static void set_throw_prob (double throw_prob)

Static Protected Member Functions


static void check_allocated (void *, size_t)

static void erase (void *, size_t)

static void insert (void *, size_t)

static void throw_conditionally ()

Detailed Description

template<typename T> class __gnu_cxx::throw_allocator< T >

Allocator class with logging and exception control.

Definition at line 189 of file throw_allocator.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.