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

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

  2. Also, does ,

5条回答
  •  忘了有多久
    2021-02-05 11:30

    This is an extension that sadly was removed from the draft standard of C++0x as it "was not ready". However, it is possible to simulate this using static asserts (that is a part of C++0x and Boost as people have mentioned here).

提交回复
热议问题