Object visibility 对象可视性 ; 对象有效周期
A member function with public visibility can be invoked by any other member function in any other object or class.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
This can be quite useful when you want to control the visibility or availability of certain object references in templates.
如果需要在模板中控制特定对象引用的可见性和可用性,这样做非常有用。
This can be prevented by imposing a strict control on the visibility of the Barrier object to only the set of processes that have synchronized on it.
要想防止这个问题,可以对Barrier对象的可见性进行严格控制,只允许那些已经在Barrier上同步的进程集看到它。
应用推荐