markdown功能测试:C++代码着色
C++代码如下:
#include <iostream>
template <typename T> struct Base {
void f() {
std::cerr << "Base<T>::f\n";
}
};
template <typename T> struct Derived : Base<T> {
void g() {
std::cerr << "Derived<T>::g\n ";
f();
}
};