Iakov Minochkin
Iakov Minochkin

Reputation: 432

Will the standard library of C++11 have forward declaration headers?

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".

Upvotes: 5

Views: 886

Answers (1)

Bo Persson
Bo Persson

Reputation: 92291

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.

Upvotes: 6

Related Questions