cpp 模版函数

template <typename T>
void fillingTable(T ***table, int row, int column, int defaultValue = STATE_NULL){
    *table = new T*[row];
    for (int r = 0; r < row; r++){
        (*table)[r] = new T[column];
        for (int c = 0; c < column; c++){
            (*table)[r][c] = defaultValue;
        }
    }
}
原文地址:https://www.cnblogs.com/mattins/p/4772779.html