我讀的STL源代碼(這竟然是既有趣又非常有用),和我碰到這種事情來爲什麼使用模板<>沒有專業化?
//file backwards/auto_ptr.h, but also found on many others.
template<typename _Tp>
class auto_ptr
//Question is about this:
template<>
class auto_ptr<void>
是在template<>
部分加入,以避免重複類?
你的頭銜很混亂,你究竟是什麼意思? – GManNickG 2010-02-20 04:47:10
我在問什麼模板<>是。 – Tom 2010-02-20 04:56:10
這只是用來說「這是一個模板類,但我不需要任何模板」的語法,因爲你會自己填充它。 – GManNickG 2010-02-20 04:59:56