小编Tim*_*mma的帖子

使用doxygen引用C++运算符重载

我正在尝试为我编写的模块编写一些通用文档,并希望operator<<在文档中引用我的方法.

我已将问题归结为几个示例文件.

C++源码

namespace outer {
namespace inner {

/** The example class is called Foo. */
class Foo
{
public:
    /** Stream an int pointlessly to Foo.
     * @param   i   Some integer that serves no purpose.
     * @return  The foo you invoked << upon.
     */
    Foo& operator<< (int i)
    {
        return *this;
    }    

    /** Foo always is and never is not. */
    bool operator! ()
    {
        return false;
    }
};

}
}
Run Code Online (Sandbox Code Playgroud)

降价文件:

Foo {#mainpage}
===
You …
Run Code Online (Sandbox Code Playgroud)

doxygen

5
推荐指数
1
解决办法
2185
查看次数

标签 统计

doxygen ×1