PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
Functions
include/c++/ext/throw_allocator.h File Reference
#include <cmath>
#include <ctime>
#include <map>
#include <string>
#include <ostream>
#include <stdexcept>
#include <utility>
#include <bits/functexcept.h>
#include <bits/move.h>
#include <tr1/functional>
#include <tr1/random>
Include dependency graph for throw_allocator.h:

Go to the source code of this file.

Functions

namespace __gnu_cxx _GLIBCXX_VISIBILITY (default)

Detailed Description

This file is a GNU extension to the Standard C++ Library.

Contains two exception-generating types (throw_value, throw_allocator) intended to be used as value and allocator types while testing exception safety in templatized containers and algorithms. The allocator has additional log and debug features. The exception generated is of type forced_exception_error.


Function Documentation

namespace __gnu_cxx _GLIBCXX_VISIBILITY ( default  )

Thown by exception safety machinery.

Base class for checking address and label information about allocations. Create a std::map between the allocated address (void*) and a datum for annotations, which are a pair of numbers corresponding to label and allocated size.

Base struct for condition policy.

Requires a public member function with the signature void throw_conditionally()

Base class for incremental control and throw.

Never enter the condition.

Always enter the condition.

Enter the nth condition.

Base class for random probability control and throw.

Group condition.

Never enter the condition.

Always enter the condition.

Class with exception generation control. Intended to be used as a value_type in templatized code.

Note: Destructor not allowed to throw.

Type throwing via limit condition.

Type throwing via random condition.

Allocator class with logging and exception generation control. Intended to be used as an allocator_type in templatized code.

Note: Deallocate not allowed to throw.

Allocator throwing via limit condition.

Allocator throwing via random condition.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines