Answers for "composition namespaces c++"

C++
0

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; 
}
Posted by: Guest on December-13-2020

Browse Popular Code Answers by Language