开发者

Boost Pool Library: How to reuse created objects?

So at the beginning of my program I want to create some buffer array on some 3 costume data elements (structs of chars and there length for example). I want to pa开发者_开发百科ss out from my app first than second element etc after all 3 elements were taken into use I want to get first one and than second etc... so not to malloc memory for elements again. Is it possible with Boost Pool Library and how exactly to do such thing?


maybe boost::circular_buffer can do such job

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜