阅读背景:

std :: shared_ptr中的最大引用计数是多少?如果你试图超过它会发生什么?

来源:互联网 

If we assume that std::shared_ptr stores a reference count (which I realize the standard does not require, but I am unaware of any implementations that don't), that reference count has a limited number of bits, and that means there is a maximum number of references that are supported. That leads to two questions: stores a refe




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

分享到: