Skip to content

Commit 8a52c77

Browse files
authored
Merge pull request #5602 from MicrosoftDocs/main
6/21/2024 AM Publish
2 parents 8b4d923 + 8ac4a82 commit 8a52c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/namespaces-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.assetid: d1a5a9ab-1cad-47e6-a82d-385bb77f4188
1010

1111
A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries. All identifiers at namespace scope are visible to one another without qualification. Identifiers outside the namespace can access the members by using the fully qualified name for each identifier, for example `std::vector<std::string> vec;`, or else by a [using Declaration](../cpp/using-declaration.md) for a single identifier (`using std::string`), or a [using Directive](../cpp/namespaces-cpp.md#using_directives) for all the identifiers in the namespace (`using namespace std;`). Code in header files should always use the fully qualified namespace name.
1212

13-
The following example shows a namespace declaration and three ways that code outside the namespace can accesses their members.
13+
The following example shows a namespace declaration and three ways that code outside the namespace can access its members.
1414

1515
```cpp
1616
namespace ContosoData

0 commit comments

Comments
 (0)