What does ::blah mean?

This is a discussion on What does ::blah mean? within the C++ Programming forums, part of the General Programming Boards category; Just a simple one (that's hard to search for answers to), basically just the title. What exactly happens when there ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    88

    What does ::blah mean?

    Just a simple one (that's hard to search for answers to), basically just the title.

    What exactly happens when there isn't a namespace in front of the '::'? Is it to do with the current namespace? Or std?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    The global namespace?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    903
    Quote Originally Posted by Dave_Sinkula
    The global namespace?
    Yup. I understand it might not be an actual question, but I wanted to make things clear ;-)

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    88
    Ah, ok. I was actually under the impression (for silly reasons, apparently) that it was the opposite of the global namespace. Oops. Thanks for the reply.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  2. Returning Multiple Values from a function
    By Eddie K in forum C Programming
    Replies: 6
    Last Post: 03-12-2006, 12:18 PM
  3. Backdooring Instantaneous Radius of Curvature & Functions
    By just2peachy in forum C++ Programming
    Replies: 8
    Last Post: 10-06-2004, 12:25 PM
  4. OS Reality
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 40
    Last Post: 02-15-2002, 12:03 AM
  5. NOTs, ORs and ANDs? HELP!!
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-29-2001, 09:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21