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

后端 未结 5 1653
忘了有多久
忘了有多久 2021-02-05 10:33
  1. Is there equivalent of , in C++?

  2. Also, does ,

5条回答
  •  爱一瞬间的悲伤
    2021-02-05 11:34

    To answer your second question: yes. As far as generics is concerned, interfaces are treated the same as real classes.

    I'll leave the first question to the more C++-savvy people.

提交回复
热议问题