(C++) operator::
January 8, 2018 · View on GitHub
(C++) operator::
operator:: (pronounced as 'scope operator') is an operator to determine the namespace used.
The example below shows how to call a function in the global namespace and that std::cout is in the std namespace.
#include <iostream> void X() { std::cout << "Hello world\n"; } int main() { ::X(); //Scope operator can be omitted }