typedef in template class with Doxygen (C++)

后端 未结 6 1775
無奈伤痛
無奈伤痛 2021-02-15 05:51

My question is related to how to comment typedef in template class with Doxygen. I will give an example to illustrate my question:

 namespace fundamental
  {
            


        
6条回答
  •  春和景丽
    2021-02-15 06:15

    The other answers will work, but if your typedef is so closely tied to the Base class that you want them to appear in the same Doxygen page, you may want to consider defining a new namespace (within Fundamental) that will just include Base and your typedef. Then, doxygen will generate a page for that namespace that will include Base and your typedef.

    Defining a file documentation will do the same thing, but this may be a more logical layout for your code.

提交回复
热议问题