can the compiler optimize g () to call f () as inline, since the definition of f () is short and accessible?
. g() , A::g() , A::f(). A, g() , , A* A& .
f(), " ", , , f(): , - f() .
struct B : A { void f() { ... } }
B b;
b.g();
A* p = &b;
p->g();
p = opaque_factory();
p->g();
void x(A* p) { p->g(); }
x(p);
, g() (.. ) , , g() .
g() ( , / .., ) : , ().