Function Template combine

Description
Headers
Synopsis

Description

The class template combination is an adapter which produces a model of BidirectionalDevice from a model of Source and a model of Sink pair or from a model of InputFilter and a model of OutputFilter. An instance of combination is constructed from a pair of instances of its template paratemers; it performs input using the first component and output using the second.

The function template combine takes a Source/Sink pair or an InputFilter/OutputFilter pair and returns an appropriate specialization of combination.

Headers

<boost/iostreams/combine.hpp>

Synopsis

namespace boost { namespace iostreams {
   
template<typename In, typename Out>
class combination;

template<typename In, typename Out>
combination<In, Out> combine(const In& in, const Out& out);

} } // End namespace boost::io