Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到如下代码
// @include template <typename T> ..... // @exclude
其实,我是从这里看到的。
@include/在评论行中是否@exclude有特殊含义还是只是作者个人风格?
@include
@exclude
这在标准 C++ 中没有特殊含义,可能是直接解析源文件的某些(文档)工具的一部分。
特别是,这是一本书的代码。作者可能选择了这种语法来描述(并且可能自动提取)书中的内容和没有的内容。