类模板 mode_of

说明
引用

说明

元函数模式标记 返回一个 模式,对应于 FilterDevice 概念之一的模型。

<boost/iostreams/traits.hpp>

引用

语法

namespace boost { namespace iostreams {

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

} } // End namespace boost::io

模板参数

T- FilterDevice 概念中之一的模型

mode_of::type

    typedef implementation-defined type;

最派生模式标记,其中 category_of<T>::type 是可转换的。如果没有此类最派生标记,则会发生编译时错误。

分配给标准库类型的模式显示在下表中。

T类别
std::basic_iostream 的特化,或派生自此类特化 seekable
std::basic_istream 的特化,或派生自此类特化 input_seekable
std::basic_ostream 的特化,或派生自此类特化 output_seekable
std::basic_streambuf 的特化,或派生自此类特化 seekable
std::back_insert_iterator 的特化,或派生自此类特化 output