?? unify1.c
字號(hào):
// Test non-type template argument folding.// Origin: smacdonald@seimac.com// { dg-do compile }template < int I1, int I2 >class unit{public: unit() {} unit( const unit<I1,I2>& ) {} template< int Q1, int Q2 > unit< I1 - Q1, I2 - Q2 > operator / ( const unit< Q1, Q2 >& rhs ) const { return unit< I1 - Q1, I2 - Q2 >(); } }; int main(){ const unit<1,0> u1; const unit<2,0> u2; unit<-1,0> u3( u1 / u2 );}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -