g ++内联编译非内联函数

时间:2015-08-02 17:18:46

标签: c++ g++ inline

我可以编译内联函数,该函数尚未使用inline关键字声明。?

list<ListCell>::iterator TablaHash::FoundOnList(int key, int table_row){
    for(list<ListCell>::iterator found= table[table_row].begin(); 
            found != table[table_row].end();found++){
        if((*found).Key() == key){
            return found;
        }
    }
    return Ø;
}

E.F.P.E。

0 个答案:

没有答案