Practice that I follow:
- foo.h should directly include all headers in its source code (i.e.
#include <string>, if there is one in foo.h std::string) - foo.cpp foo.h , , , foo.h
: foo. * , . foo.cpp( foo.h), foo.cpp, foo.h.
, #include <string> foo.cpp, foo.h.
, string #include <vector>, foo.h std::vector. #include <vector> foo.h, โ , string .