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. |
|
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.
|