1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <TITLE>Function Template combine
</TITLE>
5 <LINK REL=
"stylesheet" HREF=
"../../../../boost.css">
6 <LINK REL=
"stylesheet" HREF=
"../theme/iostreams.css">
12 <H1 CLASS=
"title">Function Template
<CODE>combine
</CODE></H1>
17 <DL class=
"page-index">
18 <DT><A href=
"#description">Description
</A></DT>
19 <DT><A href=
"#headers">Headers
</A></DT>
20 <DT><A href=
"#synopsis">Synopsis
</A></DT>
23 <A NAME=
"description"></A>
27 The class template
<CODE>combination
</CODE> takes an
<A HREF=
"../concepts/input_filter.html">InputFilter
</A>/
<A HREF=
"../concepts/output_filter.html">OutputFilter
</A> pair or a
<A HREF=
"../concepts/source.html">Source
</A>/
<A HREF=
"../concepts/sink.html">Sink
</A> pair and yields a Filter or Device which performs input using the first component and output using the second. The function template
<CODE>combine
</CODE> takes an
<A HREF=
"../concepts/input_filter.html">InputFilter
</A>/
<A HREF=
"../concepts/output_filter.html">OutputFilter
</A> pair or a
<A HREF=
"../concepts/source.html">Source
</A>/
<A HREF=
"../concepts/sink.html">Sink
</A> pair and returns an appropriate specialization of
<CODE>combination
</CODE>.
30 <A NAME=
"headers"></A>
34 <DT><A CLASS=
"header" HREF=
"../../../../boost/iostreams/combine.hpp"><CODE><boost/iostreams/combine.hpp
></CODE></A></DT>
37 <A NAME=
"synopsis"></A>
40 <PRE CLASS=
"broken_ie"><SPAN CLASS=
"keyword">namespace
</SPAN> boost {
<SPAN CLASS=
"keyword">namespace
</SPAN> iostreams {
42 <SPAN CLASS=
"keyword">template
</SPAN><<SPAN CLASS=
"keyword">typename
</SPAN> In,
<SPAN CLASS=
"keyword">typename
</SPAN> Out
>
43 <SPAN CLASS=
"keyword">class
</SPAN> combination;
45 <SPAN CLASS=
"keyword">template
</SPAN><<SPAN CLASS=
"keyword">typename
</SPAN> In,
<SPAN CLASS=
"keyword">typename
</SPAN> Out
>
46 combination
<In, Out
> combine(
<SPAN CLASS=
"keyword">const
</SPAN> In
& in,
<SPAN CLASS=
"keyword">const
</SPAN> Out
& out);
48 } }
<SPAN CLASS=
"comment">// End namespace boost::io
</SPAN></PRE>
54 <P CLASS=
"copyright">© Copyright
2008 <a href=
"http://www.coderage.com/" target=
"_top">CodeRage, LLC
</a><br/>© Copyright
2004-
2007 <a href=
"http://www.coderage.com/turkanis/" target=
"_top">Jonathan Turkanis
</a></P>
56 Distributed under the Boost Software License, Version
1.0. (See accompanying file LICENSE_1_0.txt or copy at
<A HREF=
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt
</A>)