composition namespaces c++ code example
Example: composition namespaces c++
namespace foo {
int var = 0;
// more declarations
}
namespace bar {
int var = 1;
// more declarations
}
namespace baz {
// composition of namespaces foo and bar
using namespace foo;
using namespace bar;
}