user855 user855 - 1 year ago 46
C++ Question

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


  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 Source

answer to the first part: Restrict Template Function

JesperE has the answer right for the 2nd part.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download