Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

iomanip.hh File Reference

Declarations of the iomanip class and related functions. More...

Include dependency graph for iomanip.hh:

This graph shows which files directly or indirectly include this file:


Namespaces

namespace  utility

Functions

template<class T>
void pword_delete (std::ios_base::event ev, std::ios_base &io, int idx)
 Delete memory associated with a stream upon its destruction.

Detailed Description

Declarations of the iomanip class and related functions.

See also:
utility::iomanip.
Author:
Thomas Claveirole <thomas.claveirole@lrde.epita.fr>

Function Documentation

void pword_delete std::ios_base::event  ev,
std::ios_base &  io,
int  idx
 

Delete memory associated with a stream upon its destruction.

Some manipulators allocate memory and use the internal extensible array to store pointers to the allocated zone. Upon the stream's destruction, the memory must be freed to avoid memory leaks.

This function is a generic callback that will perform such a destruction. idx is used as an index in the internal extensible array to an element of type T*. When an erase_event is received, the element idx refers to in the stream is deleted.

Parameters:
T Type of the pointed element.
  • ev IO event.
  • io Related stream.
  • idx Index in the internal extensible array of a pointer to delete.
See also:
iomanip
Author:
Thomas Claveirole <thomas.claveirole@lrde.epita.fr>


Generated on Thu Oct 27 12:48:50 2005 for Vaucanson by  doxygen 1.4.1