what is the use of using declaration type of namespacing over using directive type of namespacing??when to use each one of them?
what is the use of using declaration type of namespacing over using directive type
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The declaration type of namespace directive introduces selected named symbols into your
codescope (and leaves other symbols from the same namespace inaccessible without the namespace qualifier).The using type of namespace directive introduces all symbols from the namespace into your
codescope – which means you don’t necessarily know exactly which symbols were introduced (there could have been undocumented symbols, or symbols left over from previous versions of the library, or …).