“仅说明”是什么意思?意思是?为什么要使用它?

发布于 2024-08-17 05:05:23 字数 209 浏览 2 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

漫雪独思 2024-08-24 05:05:23

它用于指示实现特定项目的一种可能方法,但不一定是最佳或推荐的方法。

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

初见终念 2024-08-24 05:05:23

“博览会”的定义之一是:

阐述、陈述或解释的行为

所以我认为他们是在说私有成员(或其他什么)只是为了帮助您理解 API 的工作原理......而这并不是 Boost API 的正式组成部分。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文