我正在尝试为我编写的模块编写一些通用文档,并希望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 ×1