【发布时间】:2021-12-29 23:00:27
【问题描述】:
我一直在寻找如何在 LLVM 中使用 YAML。而且我不明白他们为什么使用空模板。例如,here。
template <>
struct ScalarEnumerationTraits<FooBar> {
static void enumeration(IO &io, FooBar &value) {
...
}
};
template <> 是干什么用的?
这不是 What is the meaning of empty "<>" in template usage? 的副本。
【问题讨论】: