Reputation: 10204
When you see an instruction like
A::B::C v;
in a c++ code, does it mean that A
and B
are namespaces defined in some header file, and C
is a class in the namespace B
?
Upvotes: 1
Views: 188
Reputation: 32972
It could be following three possibilities:
namespace A {
namespace B {
using C = int; // some types
}
}
or
namespace A
{
struct B
{
using C = int; // some types
};
};
or
struct A
{
struct B
{
using C = int; // some types
};
};
You need to look into the source code to confirm!
Upvotes: 3