typedef in template class with Doxygen (C++)

后端 未结 6 1756
無奈伤痛
無奈伤痛 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:18

    You could also use the /sa command to manually place a reference in Base's page.

    namespace fundamental
    {
      /**
      * Basic function
      * /sa Coordinate
      */
      template 
      class Base
      {
      public:
        T x; ///< x coordinate
        T y; ///< y coordinate
      };
      typedef Base Coordinate; ///< Point coordinate class
    }
    

提交回复
热议问题