1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <TITLE>Class Template mode_of
</TITLE>
5 <LINK REL=
"stylesheet" HREF=
"../../../../boost.css">
6 <LINK REL=
"stylesheet" HREF=
"../theme/iostreams.css">
12 <H1 CLASS=
"title">Class Template
<CODE>mode_of
</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=
"#reference">Reference
</A></DT>
25 <A NAME=
"description"></A>
28 <P><A HREF=
"http://www.boost.org/libs/mpl/doc/refmanual/metafunction.html" TARGET=
"_top">Metafunction
</A> returning a
<A HREF=
"../guide/modes.html#mode_tags">mode tag
</A> corresponding the the
<A HREF=
"../guide/modes.html">mode
</A> of a model of one of the
<A HREF=
"../guide/concepts.html#filter_concepts">Filter
</A> or
<A HREF=
"../guide/concepts.html#device_concepts">Device
</A> concepts.
</P>
30 <A NAME=
"headers"></A>
33 <DL class=
"page-index">
34 <DT><A CLASS=
"header" HREF=
"../../../../boost/iostreams/traits.hpp"><CODE><boost/iostreams/traits.hpp
></CODE></A></DT>
37 <A NAME=
"reference"></A>
42 <PRE CLASS=
"broken_ie"><SPAN CLASS=
"keyword">namespace
</SPAN> boost {
<SPAN CLASS=
"keyword">namespace
</SPAN> iostreams {
44 <SPAN CLASS=
"keyword">template
</SPAN><<SPAN CLASS=
"keyword">typename
</SPAN> <A HREF=
"#template_params" CLASS=
"documented">T
</A>>
45 <SPAN CLASS=
"keyword">struct
</SPAN> mode_of {
46 <SPAN CLASS=
"keyword">typedef
</SPAN> <SPAN CLASS=
"omitted">see below
</SPAN> <A HREF=
"#type" CLASS=
"documented">type
</A>;
49 } }
<SPAN CLASS=
"comment">// End namespace boost::io
</SPAN></PRE>
51 <A NAME=
"template_params"></A>
52 <H4>Template parameters
</H4>
54 <TABLE STYLE=
"margin-left:2em" BORDER=
0 CELLPADDING=
2>
56 <TD VALIGN=
"top"><I>T
</I></TD><TD WIDTH=
"2em" VALIGN=
"top">-
</TD>
57 <TD>A Model of one of the
<A HREF=
"../guide/concepts.html#filter_concepts">Filter
</A> or
<A HREF=
"../guide/concepts.html#device_concepts">Device
</A> concepts
</TD>
62 <H4><CODE>mode_of::type
</CODE></H4>
64 <PRE CLASS=
"broken_ie"> <SPAN CLASS=
"keyword">typedef
</SPAN> <SPAN CLASS=
"omitted">implementation-defined
</SPAN> <A HREF=
"#type" CLASS=
"documented">type
</A>;
</PRE>
66 <P>The most-derived
<A HREF=
"../guide/modes.html#mode_tags">mode tag
</A> to which
<A HREF=
"../guide/traits.html#category"><CODE>category_of
<T
>::type
</CODE></A> is convertible. If there is no such most-derived tag, a compile-time error occurs.
</P>
68 <P>Modes assigned to standard library types are displayed in the following table.
</P>
70 <TABLE STYLE=
"margin-bottom:2em" BORDER=
1 CELLPADDING=
4>
71 <TR><TH><CODE>T
</CODE></TH><TH><CODE>category
</CODE></TH></TR>
73 <TD VALIGN=
"top">Specialization of
<CODE>std::basic_iostream
</CODE>, or derived from such a specialization
</TD>
74 <TD><CODE>seekable
</CODE></TD>
77 <TD VALIGN=
"top">Specialization of
<CODE>std::basic_istream
</CODE>, or derived from such a specialization
</TD>
78 <TD><CODE>input_seekable
</CODE></TD>
81 <TD VALIGN=
"top">Specialization of
<CODE>std::basic_ostream
</CODE>, or derived from such a specialization
</TD>
82 <TD><CODE>output_seekable
</CODE></TD>
85 <TD VALIGN=
"top">Specialization of
<CODE>std::basic_streambuf
</CODE>, or derived from such a specialization
</TD>
86 <TD><CODE>seekable
</CODE></TD>
89 <TD VALIGN=
"top">Specialization of
<CODE>std::back_insert_iterator
</CODE>, or derived from such a specialization
</TD>
90 <TD><CODE>output
</CODE></TD>
98 <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>
100 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>)