对cuda的解释有很多'\ p'

0 cuda

extern __host__ cudaError_t CUDARTAPI cudaMemcpy(void *dst, const void *src, size_t count, enum cudaMemcpyKind kind);

/**
 * \brief Copies memory between two devices
 *
 * Copies memory from one device to memory on another device.  \p dst is the 
 * base device pointer of the destination memory and \p dstDevice is the 
 * destination device.  \p src is the base device pointer of the source memory 
 * and \p srcDevice is the source device.  \p count specifies the number of 
 */
Run Code Online (Sandbox Code Playgroud)

正如你在上面看到的那样,在cuda解释中有很多"\ p",我只是想知道它是什么意思?谢谢!

Rob*_*lla 5

你会注意到它们包含在评论中,对吗?

它们是自动文档系统的文本键,用于标识"下一个是函数参数".

您摘录此内容的方式也令人困惑,因为注释部分适用于注释后面的函数原型,而不是注释之前的函数原型.