The Boost Iostreams library contains the convenience function copy
which reads data from a provided source and writes it to a provided sink, until the end of stream is reached. It is a more flexible version of the std::basic_ostream
member function
basic_ostream<Ch, Tr>& operator<<(basic_streambuf<Ch, Tr>*);
More convenience functions may be added in the future.
<boost/iostreams/copy.hpp>
copy
Revised 20 May, 2004
© Copyright Jonathan Turkanis, 2004
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)