Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Let’s say we have a function which takes a string as an argument. Our string class is called COLstring. Best practice is to predeclare the COLstring class in the header file so that we can avoid including the COLstring.h header file like this:

class COLstring;   // This is better than using #include <COL/COLstring.h>

void FILload(const COLstring& Name, COLstring* pData);

In this case it doesn’t make much difference in compilation speed but it adds up through the network effect:

video3302516402.mp4

  • No labels