Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C++ 中,我需要使用我自己的std::basic_streambuf<Type>. 是否需要标准库来按预期构造/销毁对象?
std::basic_streambuf<Type>
这是可能的,但您可能需要实现一些缺少的 iostream、char_traits、成员/朋友函数。ostream::write 等一些基本功能可能开箱即用。