This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
虽然理论上看起来std::istream::get()可能很快,但实际上并非如此。我相信一个原因是每次调用都会进行一些锁定std::istream::get(),而对于单线程程序,这不是必需的。getc_unlocked在 C++ 中是否有等价物?std::streambuf或者也许有某种方法可以在 C++中关闭(我假设) a 的这种锁定?