
Performance Tips
Forward Declare When Possible This: // some header file class MyClass; void doSomething(const MyClass &); Instead of: // some header file #include “MyClass.hpp” void doSomething(const MyClass &); This applies to […]
Forward Declare When Possible This: // some header file class MyClass; void doSomething(const MyClass &); Instead of: // some header file #include “MyClass.hpp” void doSomething(const MyClass &); This applies to […]
The rule of three (also known as the Law of The Big Three or The Big Three) claims that if a class defines any of the following then it should probably explicitly define […]
Write in a clear and consistent coding style. You can see some examples of my code here and here; this is not the exact style you need to follow, but pick a style and […]