What does “exposition only” mean? Why use it?

ぐ巨炮叔叔 提交于 2019-12-06 20:29:03

问题


All over boost.org and also at other sites on the web I've seen code of this form:

class whatever
{
...
   private:
      std::vector<std::string> m_name;  // exposition only
};

What is the meaning of "exposition only"? What is the comment's purpose? What is it trying to tell me?


回答1:


It's used to indicate one possible way to implement the particular item, but not necessarily the best or recommended way.




回答2:


One of the definitions of "exposition" is:

the act of expounding, setting forth, or explaining

So I think they are saying that the private member (or whatever) is only shown to help you understand how the API might work ... and that is not formally part of the Boost API.



来源:https://stackoverflow.com/questions/2006744/what-does-exposition-only-mean-why-use-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!