[問題] Android 內的一個 cpp 檔

看板C_and_CPP作者 (非常念舊)時間8年前 (2016/01/26 10:47), 8年前編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
不好意思,我是新手,好像有看過書上的教學,但現在突然找不到了... 我在網路上的博客中某一個 cpp 檔 裡面有一段用法 sp <ProcessState> ProcessState::self(){ .... ... ... } <xxxx> ---> 請問這是個甚麼用法? 看起來像是類別強制轉換? ProcessState 是一個類別,這裡程式中呼叫 ProcessState 內的 self 方法 然後回傳一個 sp 。 能否有大大稍微指點我一下,感激不盡。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.220.235 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1453776439.A.D82.html ※ 編輯: gn00618777 (60.251.223.31), 01/26/2016 11:15:06

01/26 11:26, , 1F
你需要的是關鍵字"template class"
01/26 11:26, 1F

01/26 12:52, , 2F
class template
01/26 12:52, 2F

01/26 22:41, , 3F
感謝! 找到教學了 ^^
01/26 22:41, 3F
文章代碼(AID): #1Mfjuts2 (C_and_CPP)