如何将非成员函数与Doxygen中的类相关联?

Eri*_* H. 11 c++ doxygen

我确定用\ defgroup,\ addgroup和\ @ {\ @}标签有一些方法可以做到这一点,但经过几个小时的试用和(显然)错误,我问的是.....

我有:

class C {
public:
    void foo () const;
};
Run Code Online (Sandbox Code Playgroud)

我有一些辅助非成员函数,它们确实是C接口的一部分,但不在类中:

std::string
format (const C& c, const std::string &fmt);
Run Code Online (Sandbox Code Playgroud)

我希望format函数与类函数出现在同一页面上.那是不可能的吗?是最好的我可以做一个"模块"页面,它将C列为一个类(带有C的注释的超链接,格式为函数?

Éri*_*ant 14

\ related(或\ memberof)似乎就是你要找的东西.