Advertisement
Caminhoneiro

:: understand

Jul 1st, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. namespace foo {
  2.   void bar();
  3. }
  4.  
  5. void bar();
  6.  
  7. namespace foo {
  8.   void foobar()
  9.   {
  10.     bar(); // means foo::bar()
  11.     ::bar(); // means bar() outside foo namespace
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement