C++ Namespaces Extending namespaces


Example

A useful feature of namespaces is that you can expand them (add members to it).

namespace Foo
{
    void bar() {}
}

//some other stuff

namespace Foo
{
    void bar2() {}
}