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
  • 73,524
  • 17
  • 153
  • 317

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
  • 28,933
  • 3
  • 44
  • 66