I have been making files like this for awhile: Does the order make sense? or should the namespace and the #includes be swapped and why.
#ifndef CLASSNAME_H // header guards
#define CLASSNAME_H
#include "a.h" // includes in alphabetical order
#include "b.h" // user specified includes first
#include "c.h"
#include <vector> // then library includes
namespace MyNamespace
{
class ClassName
{
};
}
#endif
#include
literally pastes the file contents into your base file, and then work out in which namespace you want to have which declarations. – Joni