# C++ namespace - usage

**URL:** <https://forum.codewithmosh.com/t/c-namespace-usage/17762>\
**Category:** C++\
**Created:** [January 18, 2023, 5:29pm UTC](https://forum.codewithmosh.com/t/c-namespace-usage/17762 "2023-01-18T17:29:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdouglas\_95136](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mdouglas\_95136](https://forum.codewithmosh.com/u/mdouglas_95136)\
**Post date:** [January 18, 2023, 5:29pm UTC](https://forum.codewithmosh.com/t/c-namespace-usage/17762/1 "2023-01-18T17:29:36Z")

</div>

Hello,  
I am new to using the “namespace” declaration without an actual name added.  
Perhaps someone can please explain this? here is the example I don’t quite understand:

namespace Abc  
{  
namespace  
{  
BasicFuncitons::Demo GetSetup()  
{  
what’s the deal with this “dangling” namespace declaration and no label?  
is this common?  
Thanks!  
MD

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [April 27, 2023, 6:32am UTC](https://forum.codewithmosh.com/t/c-namespace-usage/17762/2 "2023-04-27T06:32:32Z")

</div>

Not certain, but a reasonable guess: it is resetting it to the “default” namespace that you would have if there were no namespace set explicitly.
