If I have multiple class and I want to have them all come under the same namespace and in my project I just want to have one include and that will give me all of the classes how would I go about doing this? I have played around with this but keep hitting a dead end.
Thanks in advance.
If you want only one include, namespaces have nothing to do with this.
You can create a file that only contains
#includestatements.Something like this:
And the include all of them with only one include
#include "classes"A real example can be found in the STL.
Take
vectorfor instance:You get all of this by just doing
#include <vector>