:: without a namespace

前端 未结 3 2022
暖寄归人
暖寄归人 2020-12-01 16:41

Consider the following line of code:

::CGContextRef cgContext = cocoa::createCgBitmapContext( surface );

How come there\'s no names

3条回答
  •  青春惊慌失措
    2020-12-01 17:29

    :: without any namespace name before it means it refers Global Namespace.

    ::CGContextRef cgContext = cocoa::createCgBitmapContext( surface );
    

    means refer to CGContextRef in the Global Namespace.

提交回复
热议问题