阅读背景:

C ++严格弱排序派生类

来源:互联网 

I'm trying to implement strict weak ordering in a subclass that I want to place in an STL set container. The STL set uses operator< to order its elements in strict weak ordering. In my case I have a hierarchy of types and I am not quite sure how to achieve this for derived types. To this end, I put together a quick I'm trying to implement strict weak ordering in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: