我有这门课:
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 提示中我有此函数的两个重载。

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