The header <iostream>
has a companion <iosfwd>
which is sufficient if I only need pointers or references to streams. The latter is a common scenario when overloading operator<<
.
Is there such a header for the STL containers? I want to define a couple of functions that take references to STL containers, and I do not want to include <vector>
, <list>
, <set>
et. al. in their entirety just so I can have references to those types. Are there standard, boost or other solutions to this problem?
Is there such a header for the STL containers?
No, there isn't.
Are there standard, boost or other solutions to this problem?
Not that I know of.
You will have to include those headers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With