小编Ros*_*ets的帖子

如何从 Visual Studio IntelliSence 提示中隐藏私有重载函数?

我有这门课:

class BST
{
public:
   void insert(int val) { insert(node, val); }
private:
   void insert(std::shared_ptr<Node> node, int i);
   std::shared_ptr<Node> node = nullptr;
};
Run Code Online (Sandbox Code Playgroud)

这里我为类用户插入了公共函数。以及 if 的私有重载版本。当我想从驱动程序代码调用此函数时,在 IntelliSence 提示中我有此函数的两个重载。 在此输入图像描述

那么是否有办法对用户隐藏私有功能呢?

c++ intellisense

2
推荐指数
1
解决办法
66
查看次数

标签 统计

c++ ×1

intellisense ×1