Previous: , Up: ostream subclasses without styling   [Contents][Index] The iconv_ostream class

The iconv_ostream class supports output to any destination. Its type is ‘iconv_ostream_t’. It is a subclass of ‘ostream_t’ that adds no methods.

It can be instantiated through this function:

Function: iconv_ostream_t iconv_ostream_create (const char *from_encoding, const char *to_encoding, ostream_t destination)

Creates an output stream that converts from from_encoding to to_encoding, writing the result to destination.

Note: The resulting stream must be closed before destination can be closed.