在Doxygen中,有关C++模板和模板元函数的文档应该遵循哪些指南?
例如:
/// @brief metafunction for generation of a map of message types to
/// their associated callbacks.
/// @tparam Seq the list of message types
template< class Seq >
struct generate_callback_map
{
typedef typename mpl::transform< Seq
, build_type_signature_pair< mpl::_1 >
>::type vector_pair_type;
typedef typename fusion::result_of::as_map< vector_pair_type >::type type;
};
目前我已经看到以下建议:
@tparam
用于描述模板参数。@arg
另一种描述模板参数的方式。@brief
用于描述元函数。
如何记录元函数的“返回类型”?
有没有人对在C++模板中使用Doxygen有好的建议或个人偏好?