0

Here sys is a namespace.
If we use sys::xx, I know exactly the meaning of ::, but I saw a code, it's using

::sys::xx;

what's the meaning by putting :: before a namespace?

GSerg
  • 76,472
  • 17
  • 159
  • 346

1 Answers1

1

It means: look in the global namespace (::) for something named sys. Then look in that scope (class/struct/namespace) for something called xx.

Jesper Juhl
  • 30,449
  • 3
  • 47
  • 70