e above operations in to a new iterator

std::copy(
    base64_text(address),
    base64_text(address + count),
    ostream_iterator&lt;CharType&gt;(os)
);
</code></pre>
Indeed, this seems to be exactly the kind of problem that iterator adaptors are 
intended to address.  The Iterator Adaptor library already includes
modules which can be configured to implement some of the operations above.  For example,
included is <a target="transform_iterator" href="../../iterator/doc/transform_iterator.html">
transform_