[英]Which header to include in order to use std::streamoff and std::streamsize?
I want to use the std::streamoff
and std::streamsize
types without pulling a huge part of the iostream library. 我想使用std::streamoff
和std::streamsize
类型,而不会std::streamsize
iostream库的很大一部分。 For now, I'm including the <iostream>
header. 现在,我包括<iostream>
标头。 Is there a better way to proceed ? 有更好的方法进行吗?
它们在头文件<ios>
中定义
#include <ios>
应该足够了。
供将来参考,尽管该网站并不完美, 但是如果您想知道某物所在的确切标头,则cplusplus.com就足够了。它位于尖括号之间的右上角,在本例中为<ios>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.