簡體   English   中英

塊注釋中的感嘆號在 C++ /*! 中意味着什么?<comment> +/</comment>

[英]What does the Exclamation mark in block comment means in C++ /*! <comment>+/

我在c++中有一個頭文件,其中函數的聲明有一個帶有感嘆號的塊注釋! .

例子

class test{
 public:
        /*! @fn test::test()
            @brief The basic constructor, which initializes the _test handle.
        */
        test();

        /*! @fn test::upload(std::string url)
            @brief A function to execute a http POST request with the given url and image.

            @param[in] url The url we are POSTing to
            @return The response of the server
        */
        std::string upload(std::string url);
}

它還會像這樣更改 VSCode 中注釋的顏色在此處輸入圖像描述

評論里這個感嘆號是什么意思?

提前致謝

這些注釋適用於自動從代碼生成文檔的Doxygen 系統

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM