且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有相当于< ;?延伸T>,<?超T>在C ++中?

更新时间:2022-10-27 09:09:01

回答第一部分:限制模板功能



JesperE第二部分的答案正确。


  1. Is there equivalent of <? extends T>, <? super T> in C++?

  2. Also, does <? extends T>, <? super T> work even if T is an interface in Java?

answer to the first part: Restrict Template Function

JesperE has the answer right for the 2nd part.