Faster Compilations In C++
Table of Contents

Forward Declaration

Use forward declaration when you need an object in the implementation and not in the interface of a class. This makes the compilation of big projects much faster, because the compiler usually spends most of its time parsing header files, not the actual source code.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.