2
假設我有類從模板類獲得一個「子類型」
template<
typename T1, /*this is probably an integral type*/
T1 Default /*this is a typical value of that integral type*/
> class Foo {};
和這樣的一個實例對給定T1
和Default
,說foo
。
我可以使用decltype(foo)
來獲得完整的類型。
是否有一些語法可用於獲取值Default
?