小编pro*_*oto的帖子

使用doxygen记录C++概念?

有没有一种方便的方法来记录doxygen中的C++概念?我想在boost文档中提供类似这样的文档.

c++ documentation doxygen

6
推荐指数
2
解决办法
1353
查看次数

两阶段名称查找:POD与自定义类型

编译和运行代码时

#include <iostream>

struct A { A(int){} };

void foo( int ) { std::cout << "foo(int)" << std::endl; }

template< typename T >
struct S {
   void bar() { foo( 5 ); }
   void foobar() { T t = 5; foo(t); }
};

inline void foo( A ) { std::cout << "foo(A)" << std::endl; }
inline void foo( double ) { std::cout << "foo(double)" << std::endl; }

int main(int argc, char* argv[])
{
   S<double> s0;
   s0.bar();
   s0.foobar();

   std::cout << '\n'; …
Run Code Online (Sandbox Code Playgroud)

c++ templates name-lookup

3
推荐指数
2
解决办法
87
查看次数

标签 统计

c++ ×2

documentation ×1

doxygen ×1

name-lookup ×1

templates ×1