Class Template io_mode

Description
Headers
Reference

Description

Metafunction returning a mode tag corresponding the the i/o mode of a model of one of the Filter or Device concepts or of a standard stream or stream buffer.

Headers

<boost/iostreams/traits.hpp>

Reference

Synopsis

namespace boost { namespace iostreams {

template<typename T>
struct io_mode {
    typedef see below type;
};

} } // End namespace boost::io

Template parameters

T- A Model of one of the Filter or Device concepts

mode::type

    typedef implementation-defined type;

The most-derived mode tag to which io_category<T>::type is convertible. If there is no such most-derived tag, a compile-time error occurs.

Modes assigned to standard library types are displayed in the following table. For standard streams and stream buffers, if the i/o mode shown below does not acurately reflect a particular implementation, the function template adapt may be used.

Tcategory
Specialization of std::basic_iostream, or derived from such a specialization seekable
Specialization of std::basic_istream, or derived from such a specialization input_seekable
Specialization of std::basic_ostream, or derived from such a specialization output_seekable
Specialization of std::basic_streambuf, or derived from such a specialization seekable
Specialization of std::back_insert_iterator, or derived from such a specialization output