//header (.h) file namespace X { struct A { void func(); }; }
//source (.cpp) file using namespace X; void A::func() {}