mode_of
元函数为 模式标记 返回一个 模式,对应于 Filter 或 Device 概念之一的模型。
<boost/iostreams/traits.hpp>
namespace boost { namespace iostreams { template<typename T> struct mode_of { typedef see below type; }; } } // End namespace boost::io
T | - | Filter 或 Device 概念中之一的模型 |
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 |
© Copyright 2008 CodeRage, LLC
© Copyright 2004-2007 Jonathan Turkanis
在 Boost 软件许可证版本 1.0 下分发。(请参阅随附文件 LICENSE_1_0.txt 或在 https://boost.ac.cn/LICENSE_1_0.txt 中复制)