Yes, you can have multiple:
namespace A {};
namespace B {};
And nested:
// Pre C++17
namespace A {
namespace B {};
};
// C++ 17+
namespace A::B {};
solved Can we have more than one namespace in a library (in c++)
Yes, you can have multiple:
namespace A {};
namespace B {};
And nested:
// Pre C++17
namespace A {
namespace B {};
};
// C++ 17+
namespace A::B {};
solved Can we have more than one namespace in a library (in c++)