[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

"using namespace std;"

Do you know if it is a standard practice to implement "using std::cout;" and
other shortened "using" statements to reduce overhead in a program? I'm
wondering what the benefit of using one of your examples would be over
"using namespace std;" . Is there a savings in memory or something that is
significant enough to cause a programmer to not use the entire namespace
1 Solution
when you do:

using namespace std

you are including all the std functions whereas by doing using std::cout you are only including a few functions

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now