Class keyword in member declaration

Sorry to ask again but I searched for forward declarations in C++ and I only got results like so:

class A;
class B { A* someMember; }
class A { … }

It makes sense and is similar to other languages I know. But in the example I mentioned in my first post, the class keyword is used inside the B declaration. In the example above, it would be:

class B {
class A* someMember;
}

Edit (typo): Is it still a forward declaration? I think it’s strange because the class was UStaticMeshComponent, which was referenced in the includes.