Answers for "extension namespaces c++"

C++
0

extension namespaces c++

// Instead of using one namespace
namespace X {
  int a;
  int b;
  int c;
  int d;
}

// Generate a namespace 
namespace Y { // namespace definition
  int a;
  int b;
}

namespace Y { // namespace extension
  int c;
  int d;
}
Posted by: Guest on December-13-2020

Code answers related to "extension namespaces c++"

Browse Popular Code Answers by Language