“仅说明”是什么意思?意思是?为什么要使用它?
在 boost.org 以及网络上的其他网站上,我都看到过这种形式的代码:
class whatever
{
...
private:
std::vector<std::string> m_name; // exposition only
};
“仅说明”是什么意思?评论的目的是什么?它想告诉我什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它用于指示实现特定项目的一种可能方法,但不一定是最佳或推荐的方法。
It's used to indicate one possible way to implement the particular item, but not necessarily the best or recommended way.
“博览会”的定义之一是:
所以我认为他们是在说私有成员(或其他什么)只是为了帮助您理解 API 的工作原理......而这并不是 Boost API 的正式组成部分。
One of the definitions of "exposition" is:
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.