- MoreEffectiveC++/Techniques1of3 . . . . 7 matches
전역 공간 사용에 대한 문제의 해결책의 또다른 접근 방법이라고 한다면, name space를 사용하는 것이다. 다음과 같이 단순히 PrintingStuff name space로 묶어 버린다.
namespace PrintingStuff { // namespace의 시작
public: // PrintingStuff namespace 안에 존재하는 것이다.
{ // PrintingStuff namespace안에 존재 하는 것이다.
PrintingStuff::thePrinter().reset();
PrintingStuff::thePrinter().submitJob(buffer);
using PrintingStuff::thePrinter; // thePrinter를 현재의 namespace안에서
Found 1 matching page out of 7555 total pages (5000 pages are searched)
You can also click here to search title.