本文介绍了C ++ 11的标准库有向前声明头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C ++ 03中没有< vectorfwd> 样文件,而有< iosfwd> header。


$ b $ p



更新:



我收到了语言创建者的回答:实际上不可能要求所有STL供应商提供此信息 >

解决方案

不,没有新的转发文件,只是旧的< iosfwd>



完整的I / O系统与向量相比很大,所以优势可能不会太大。


In C++03 there are no <vectorfwd>-like files, while there is the <iosfwd> header. Will this change in the future?

It could be valuable to reduce dependencies and for better modularity.

UPDATE:

I have received an answer from the language creator: "practically it's not possible to require this from all STL vendors".

解决方案

No, there are no new forward files, just the old <iosfwd>.

The complete I/O-system is large compared to a vector, so the advantage would perhaps not be that significant.

这篇关于C ++ 11的标准库有向前声明头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 18:43