template <class charT, class traits = char_traits<charT> > class basic_streambuf;
| 成员类型 | 定义 | 说明 |
|---|---|---|
| char_type | 第一个模板参数(charT) | |
| traits_type | 第二个模板参数(traits) | 默认为:char_traits<charT> |
| int_type | traits_type::int_type | |
| pos_type | traits_type::pos_type | 通常与 streampos 相同 |
| off_type | traits_type::off_type | 通常与 streamoff 相同 |
| beginning (起始指针) | current position (get/put指针) | end (结束指针) | |
|---|---|---|---|
| Input sequence | eback | gptr | egptr |
| Output sequence | pbase | pptr | epptr |