AksharRoop
AksharRoop

Reputation: 2293

What is the scope of function within anonymous namespace in VC++?

If CPP file defines

namespace 
{
 void Function() { ... }
}

what is the scope of Function?

Upvotes: 0

Views: 54

Answers (1)

AksharRoop
AksharRoop

Reputation: 2293

File Scope. In this case Function is accessible only within the file it is defined in.

Upvotes: 1

Related Questions